emacs-devel
[Top][All Lists]
Advanced

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

kbd vs read-key-sequence


From: Juanma Barranquero
Subject: kbd vs read-key-sequence
Date: Wed, 28 Feb 2007 23:27:54 +0100

I'm trying to bind a key which includes the character º (that's U+00BA
[MASCULINE ORDINAL INDICATOR], which is easy to access in a Spanish
keyboard).

ELISP> (event-basic-type (aref (kbd "C-M-º") 0))
2234

;; Now we type C-M-º
ELISP> (event-basic-type (aref (read-key-sequence "Try: ") 0))
186

ELISP> ?º
2234

ELISP> (format "%04X" 186)
"00BA"

This makes things interesting, because

(global-set-key (kbd "C-M-º") 'my-command)

produces a binding which is not recognized by `describe-key'.

            Juanma

reply via email to

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