darksky
darksky

Reputation: 21019

Meta Key Cancels Ctrl in Emacs

I am trying to override Control-Meta-Down Arrow and Control-Meta-Up Arrow in emacs.

I've tried all sorts of combinations of: (global-set-key [C-M-down] 'function) and: "\C-\M-<down>" etc... but it always says: ESC undefined. This means it is only taking into account the M-<down>. Why is it ignoring the Control?? I've been working on this for 3 hours and emacs online documentation with regards to key bindings is surprisingly absolutely terrible.

Upvotes: 0

Views: 246

Answers (2)

Lindydancer
Lindydancer

Reputation: 26104

When using Emacs in the terminal (which you mentioned in a comment), you are limited to the key sequences that the terminal is capable of. Unfortunately, C-down is not one of them...

Upvotes: 3

Lindydancer
Lindydancer

Reputation: 26104

Some versions of Emacs on Mac OS X have had problems with the qualifier keys. Try to update it to a newer version.

I tested this on an Emacs built from the source archive, and it works as intended. (In this case, it simply says that function is not defined, which is what expected.)

Upvotes: 0

Related Questions