emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: ruler-mode/key-bindings


From: Nick Roberts
Subject: Re: ruler-mode/key-bindings
Date: Tue, 24 Oct 2006 09:41:42 +1300

Richard Stallman writes:
 >     Ruler-mode, Emacs reports that mouse clicks in the header-line are
 >     undefined e.g
 > 
 >     <header-line> <S-mouse-1> is undefined
 > 
 >     even though it is bound to ruler-mode-mouse-set-left-margin and
 >     performs that function.
 > 
 > Those words seem to say that the click both fails and works correctly.
 > I do not know how to reconcile those two apparently contradictory
 > statements.
 > 
 > Can you provide a precise test case?

1) Do M-x ruler-mode.
2) Click S-mouse-1 on the header line.

The left margin is set where the click occurred but the frame flashes and the
message above appears in the minibuffer.

I think this may due to a change in keyboard.c.  The message appears because
Emacs reaches this line (Vthis_command is nil):

      if (NILP (Vthis_command))
        {
          /* nil means key is undefined.  */
          Lisp_Object keys = Fvector (i, keybuf);
          keys = Fkey_description (keys, Qnil);
          bitch_at_user ();
--->      message_with_string ("%s is undefined", keys, 0);
          current_kboard->defining_kbd_macro = Qnil;
          update_mode_lines = 1;
          current_kboard->Vprefix_arg = Qnil;
        }


-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

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