emacs-devel
[Top][All Lists]
Advanced

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

Re: mode-line under vc


From: Stefan Monnier
Subject: Re: mode-line under vc
Date: Tue, 17 Jul 2007 00:49:41 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

> In any case this binding (VC Menu) doesn't work if the window isn't already
> selected. You need to do something like mouse-major-mode-menu:

> (defun mouse-major-mode-menu (event &optional prefix)
>   "Pop up a mode-specific menu of mouse commands.
> Default to the Edit menu if the major mode doesn't define a menu."
>   ;; Switch to the window clicked on, because otherwise
>      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   ;; the mode's commands may not make sense.

Are you sure it's needed?  It'd sound like a bug in keyboard.c (or somesuch)
if it is.


        Stefan


PS: Yes, it may be needed if the menu is popped manually via a defun as is
done for mouse-major-mode-menu, but for menus that are popped directly by
the keymap-traversal code it seems like a bug.




reply via email to

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