[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

key-binding values

From: Drew Adams
Subject: key-binding values
Date: 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: [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 "^@".

reply via email to

[Prev in Thread] Current Thread [Next in Thread]