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: [67108896] 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
[67108896] 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 "^@".



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to