[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What are the numbers on car of keymaps
From: |
Pascal J. Bourguignon |
Subject: |
Re: What are the numbers on car of keymaps |
Date: |
Mon, 16 Jul 2012 13:07:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
Daniel Hilst <danielhilst@gmail.com> writes:
> I, yet, do not understand keymaps... What are the number on car of
> keymaps and how do they map to keys
>
> Here is a sample http://pastebin.com/eAAytqx9
In emacs lisp, characters are integers.
So a key that correspond to a character will be represented by this
character (ie. the code of this character).
But other keys, or key chords will be represented by bigger integers,
that are not the code of any character. You can find them with kbd or
edmacro-parse-keys.
(kbd "C-M-a") --> [134217729]
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.