emacs-devel
[Top][All Lists]
Advanced

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

Re: Wrong comment in keymap.c


From: Stefan Monnier
Subject: Re: Wrong comment in keymap.c
Date: Sun, 25 Mar 2007 21:49:39 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

> Here is another one, for `read_key_sequence' in keyboard.c.
> `first_binding' is always used with `submaps', shouldn't the
> comment for it be `submaps', rather than `defs'?

No, the comment is correct.  The "submaps[first_binding]" expressions are
used to check whether that first binding is a prefix or not.  I.e. kind of
like "KEYMAPP (defs[first_binding])".

It's mostly set in follow_key:

          if (! NILP (defs[i]))
            first_binding = i;


-- Stefan




reply via email to

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