unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* What are the numbers on car of keymaps
@ 2012-07-15 15:57 Daniel Hilst
  2012-07-15 23:31 ` Mark Simpson
  2012-07-16 11:07 ` Pascal J. Bourguignon
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Hilst @ 2012-07-15 15:57 UTC (permalink / raw)
  To: help-gnu-emacs

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

Cheers



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What are the numbers on car of keymaps
  2012-07-15 15:57 What are the numbers on car of keymaps Daniel Hilst
@ 2012-07-15 23:31 ` Mark Simpson
  2012-07-16 11:07 ` Pascal J. Bourguignon
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Simpson @ 2012-07-15 23:31 UTC (permalink / raw)
  To: help-gnu-emacs


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

Those appear to be the ASCII value of the key being mapped.

0x27 is ESC, 0x114 is 'r'

For reference: http://www.asciitable.com/ or 'man ascii' (if available).

Ciao
Mark




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What are the numbers on car of keymaps
  2012-07-15 15:57 What are the numbers on car of keymaps Daniel Hilst
  2012-07-15 23:31 ` Mark Simpson
@ 2012-07-16 11:07 ` Pascal J. Bourguignon
  1 sibling, 0 replies; 3+ messages in thread
From: Pascal J. Bourguignon @ 2012-07-16 11:07 UTC (permalink / raw)
  To: help-gnu-emacs

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 {}.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-16 11:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-15 15:57 What are the numbers on car of keymaps Daniel Hilst
2012-07-15 23:31 ` Mark Simpson
2012-07-16 11:07 ` Pascal J. Bourguignon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).