all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 21033@debbugs.gnu.org
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)	[thread overview]
Message-ID: <7753d869-0ee5-46c3-a295-d2ce298e922d@default> (raw)
In-Reply-To: <jwvk2u7ejpt.fsf-monnier+emacsbugs@gnu.org>

> > 		(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.





      reply	other threads:[~2015-07-10 23:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-10 21:01 bug#21033: 25.0.50; `local-map' property inside `:eval' sexp in mode-line Drew Adams
2015-07-10 22:24 ` Stefan Monnier
2015-07-10 23:03   ` Drew Adams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7753d869-0ee5-46c3-a295-d2ce298e922d@default \
    --to=drew.adams@oracle.com \
    --cc=21033@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.