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

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

Re: About `lookup-key'


From: Xue Fuqiao
Subject: Re: About `lookup-key'
Date: Sat, 9 Feb 2013 23:38:02 +0800

Michael Heerdegen <address@hidden> writes:

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

Thanks for your explanation, but I still don't understand.  What's the
difference of "not a valid key sequence" in `key-lookup' and KEYMAP?

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



reply via email to

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