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

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

bug#21033: 25.0.50; `local-map' property inside `:eval' sexp in mode-lin


From: Stefan Monnier
Subject: bug#21033: 25.0.50; `local-map' property inside `:eval' sexp in mode-line
Date: Fri, 10 Jul 2015 18:24:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>               (define-key map [mouse-2] 'foo)
                                ^^^^^^^^^

events on the mode-line have a `mode-line' prefix.
IOW, you want to use [mode-line mouse-2].
This seems completely weird in this case, but it makes a lot of sense
when the binding comes from the buffer-local (or the global) keymap,
since it lets us define different bindings for clicks inside the window
and in the mode-line.


        Stefan





reply via email to

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