views:

48

answers:

1

In org-mode, pressing M-S-RET (meta-shift-return) will create a new TODO on a new line. This key sequence sends M-RET to emacs through my terminal. I've checked this with C-h c ESC-S-RET, which returns M-RET is undefined in the mini-buffer.

I'm using Snow Leopard with Emacs 23.2.1 running in Terminal.app. There is no option to define a RET sequence in the terminal keyboard preferences.

Any idea what's causing the missing SHIFT? Workarounds?

+2  A: 

In general, lots of keystrokes are simply impossible to send via a terminal, since terminals emulate an old protocol that only allowed 256 separate keys (or maybe only 128).

Chances are, when you press S-RET, Terminal.app does exactly the same thing as if you'd pressed RET. Thus Emacs has no way to distinguish those two cases.

offby1
I was afraid this might be the case. I'll leave the question open for a bit to see if anyone out there knows which terminal I should emulate to get `S-RET`. It may not be possible. Currently, terminal reports itself as `xterm-color`, but I can change this in the config options. Don't know if it would solve anything though.
jrhorn424