help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: About `lookup-key'


From: Michael Heerdegen
Subject: Re: About `lookup-key'
Date: Sat, 09 Feb 2013 16:15:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.93 (gnu/linux)

Xue Fuqiao <address@hidden> writes:

> In (info "(elisp) Functions for Key Lookup"):
>
>   If the string or vector KEY is not a valid key sequence according
>   to the prefix keys specified in KEYMAP, it must be "too long" and
>   have extra events at the end that do not fit into a single key
>   sequence.
>
> It is the documentation of the function `lookup-key'.  I have a
> question: why must it be "too long"?  Can't it be a wrong key
> sequence, such as `C-!' in the global-map?

Yes, of course - but that's not meant with "invalid" in this paragraph,
because the return value of `lookup-key' is well defined in this case.
I.e., "invalid" IMO refers to the function `key-lookup', not to the
given keymap.

Do you want to suggest a better circumscription than that given in the
manual?


Regards,

Michael.



reply via email to

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