[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tue, 6 Sep 2005 08:50:53 -0700
Consider these two definitions:
(defcustom my-key [?\C-\ ] "My key sequence.")
(defcustom my-key "\C- " "My key sequence.")
`C-h v' then gives these values:  and "^@".
Is this as good as can be expected - is there no way to get something more
readable for [?\C-\ ]? Emacs users learn quickly to read "^@" as "control
@", and they also learn that this is equivalent to "control SPC", but
 is hard to read and digest.
Also, correct me if I'm wrong, but my understanding is that the form [?\C- ]
is generally preferred over the form "\C- ", for a key binding. If so, that
makes matters worse in cases like this.
This form is good:
(defcustom my-key [(control ?\ )] "My key sequence.")
`C-h v' then gives [(control 32)], which is even clearer than "^@".
- key-binding values,
Drew Adams <=