emacs-devel
[Top][All Lists]
Advanced

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

Re: `key-binding' and XEmacs-style events


From: David Kastrup
Subject: Re: `key-binding' and XEmacs-style events
Date: Fri, 02 Mar 2007 09:31:41 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux)

"Stuart D. Herring" <address@hidden> writes:

>>> We're talking about going the other way -- supporting (key-binding
>>> [(?a)])
>>> in Emacs
>>
>> Yes, but we don't have to fix it.
>>
>> If you want to write portable code, simply use the GNU Emacs format [?a],
>> as this is also supported by XEmacs.
>
> What I am actually interested in can be seen at
> http://www.emacswiki.org/cgi-bin/wiki/unbound.el: this code
> mechanically manipulates keystrokes.  By far the easiest way to do
> this is to generate XEmacs lists with modifiers and base events,
> rather than having to generate the symbol 'C-end and the low-ASCII
> ?\C-a and the high-bit-set ?\C-` with separate rules.  Then the
> natural way of representing an unmodified key is a list containing 0
> modifiers and the base event, but that fails (for `key-binding'
> only; `lookup-key' and `define-key' accept it) because it doesn't
> happen to begin with a symbol.

Is it documented anywhere that this a valid way to create a key
sequence with modifiers?

Should we document it?

Should we change EVENT_HAS_PARAMETERS itself maybe?  Or EVENTP?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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