[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7631: 24.0.50; inconsistency in event-convert-list and event-basic-t
From: |
Stefan Monnier |
Subject: |
bug#7631: 24.0.50; inconsistency in event-convert-list and event-basic-type |
Date: |
Mon, 13 Dec 2010 13:01:14 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> (event-convert-list '(t)) ; => 116
> There's good reason to want this to eval to t (i.e. the symbol, not
> the char).
Could you explain what is this good reason?
In Emacs, events corresponding to keys that are associated with
a characters are represented by an Elisp char, whereas other events are
represented by symbols.
AFAIK event-convert-list is mostly used to convert XEmacs style
(define-key map [(control x)] 'foo)
to
(define-key map ?\C-x 'foo)
so this single-char symbol conversion to a character is useful.
Maybe you can explain to us the problem it causes you.
Stefan