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: Herbert Euler
Subject: RE: Wrong comment in keymap.c
Date: Fri, 23 Mar 2007 09:25:49 +0800

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'?  Patch:

*** keyboard.c.~1.753.2.58.~    Mon Nov 13 10:58:22 2006
--- keyboard.c  Fri Mar 23 09:21:18 2007
*************** read_key_sequence (keybuf, bufsize, prom
*** 8656,8664 ****
      of the place where a mouse click occurred.  */
   volatile int localized_local_map = 0;

!   /* The index in defs[] of the first keymap that has a binding for
      this key sequence.  In other words, the lowest i such that
!      defs[i] is non-nil.  */
   volatile int first_binding;
   /* Index of the first key that has no binding.
      It is useless to try fkey.start larger than that.  */
--- 8656,8664 ----
      of the place where a mouse click occurred.  */
   volatile int localized_local_map = 0;

!   /* The index in submaps[] of the first keymap that has a binding for
      this key sequence.  In other words, the lowest i such that
!      submaps[i] is non-nil.  */
   volatile int first_binding;
   /* Index of the first key that has no binding.
      It is useless to try fkey.start larger than that.  */

Regards,
Guanpeng Xu

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





reply via email to

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