From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: current-active-maps doesn't look at emulation-mode-map-alists, why?
Date: Mon, 26 Dec 2016 22:04:51 -0500 [thread overview]
Message-ID: <CAM-tV-9RHjqHFPAPbUtothh+Tz0QaVggLyihRvZfpzBODd=BtQ@mail.gmail.com> (raw)
In-Reply-To: <jwvfula9m3k.fsf-monnier+Inbox@gnu.org>
On Mon, Dec 26, 2016 at 8:50 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>>>> Any reason why current-active-maps doesn't return keymaps from
>>>> emulation-mode-map-alists?
>
> What makes you think it doesn't?
Oops. It was a mixup on my end. I had a test where `key-binding'
wasn't returning what I expected and I missed that current_minor_maps
checks emulation-mode-map-alists. So I made a wrapping function which
overrides `this-command-keys-vector' and adds the keymaps from
emulation-mode-map-alists explicitly. But in fact, that second thing
is 100% redundant (the first is needed because I have a binding to
(menu-item ... :filter ...) where the filter uses
`this-command-keys-vector' to make its decision).
Sorry for the noise.
prev parent reply other threads:[~2016-12-27 3:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-23 4:02 current-active-maps doesn't look at emulation-mode-map-alists, why? Noam Postavsky
2016-12-24 0:56 ` Stefan Monnier
2016-12-26 20:50 ` Noam Postavsky
2016-12-27 1:50 ` Stefan Monnier
2016-12-27 3:04 ` Noam Postavsky [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
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='CAM-tV-9RHjqHFPAPbUtothh+Tz0QaVggLyihRvZfpzBODd=BtQ@mail.gmail.com' \
--to=npostavs@users.sourceforge.net \
--cc=emacs-devel@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 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).