From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Drew Adams <drew.adams@oracle.com>, emacs-devel@gnu.org
Subject: local binding ineffective inside widget
Date: Fri, 06 Sep 2019 08:39:39 -0400 [thread overview]
Message-ID: <jwv36h9ob2w.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87pnke4wdp.fsf@web.de> (Michael Heerdegen's message of "Thu, 05 Sep 2019 17:04:50 +0200")
> But I have a question: I want that C-c C-c in the _whole_ pop-up buffer
> starts the search - even when point is over a widget. I didn't get that
> work. The local map is ignored inside widgets.
I don't have time to look more closely, but I'd suspect it might be
because the widget uses the `local-map` property instead of the
`keymap` property. If so, maybe you can change the widget to use the
`keymap` property instead or to dynamically build a keymap that inherits
from the buffer-wide local-map?
A possible workaround is to put the binding inside an ad-hoc minor-mode.
Stefan
next prev parent reply other threads:[~2019-09-06 12:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 2:15 A widget-based version of find-cmd Michael Heerdegen
2019-06-03 19:07 ` Stefan Monnier
2019-06-03 20:41 ` Drew Adams
2019-06-03 22:53 ` Michael Heerdegen
2019-06-03 23:28 ` Drew Adams
2019-06-13 23:35 ` Michael Heerdegen
2019-09-05 15:04 ` Michael Heerdegen
2019-09-05 17:10 ` Drew Adams
2019-09-05 21:26 ` Michael Heerdegen
2019-09-06 12:39 ` Stefan Monnier [this message]
2019-09-06 14:10 ` local binding ineffective inside widget Michael Heerdegen
2019-09-24 9:28 ` Michael Heerdegen
2019-06-03 22:40 ` A widget-based version of find-cmd Michael Heerdegen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv36h9ob2w.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=michael_heerdegen@web.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).