[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: |
Drew Adams |
Subject: |
bug#21033: 25.0.50; `local-map' property inside `:eval' sexp in mode-line |
Date: |
Fri, 10 Jul 2015 16:03:13 -0700 (PDT) |
> > (define-key map [mouse-2] 'foo)
> ^^^^^^^^^
>
> events on the mode-line have a `mode-line' prefix.
Ay, caramba ! (aka Merde !) Thank you!
I should have thought of that. I'm glad I asked, because I'm
pretty sure that would not have occurred to me, though it
probably should have.
I'll close the bug.
> 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.
Got it. Thx.