Author: XahXah Date: Sep 17, 2008 15:51
A emacs developer Chong Yidong replied to my bug report.
Chong wrote:
« This is a legacy of ASCII. Taking a look at an
ASCII chart, you'll see that ^A (control-a) through
^Z (control-z) map to ASCII codes 1 through 26, and these control
keys are not case sensitive: control-a is equivalent to
control-A.
Emacs extends ASCII, which allows us to define things like C-]
which are not present in ASCII. However, (kbd "C-N")
and (kbd "C-n") still both evaluate to ^N. »
I think there is still a problem, that is, inconsistency with the meta
notation.
Namely, when defining a key with Ctrl or Meta with a Shift and a
letter, when it is Meta,
(global-set-key (kbd "M-N") 'f) works
but
(global-set-key (kbd "M-S-n") 'f) does not work.
But with Ctrl, it is the the other way around.
|