From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Stefan Guath <stefan@automata.se>
Cc: 12868@debbugs.gnu.org
Subject: bug#12868: global keymap preceeds input-decode-map
Date: Mon, 12 Nov 2012 16:07:46 -0500 [thread overview]
Message-ID: <jwv1ufycz90.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <ED0668BE-8CE0-4C46-9896-2558122D15E5@automata.se> (Stefan Guath's message of "Mon, 12 Nov 2012 18:31:48 +0100")
> The input-decode-map section could just have the exact same sentence as
> local-function-key-map has, i.e. "Entries in input-decode-map are ignored if
> they conflict with bindings made in the minor mode, local, or global
> keymaps". Since local-function-key-map has that sentence, and
> input-decode-map does not, one assume that they work differently. Which is
> not the case.
But they do work differently: If you have a global-map binding of
"M-O A", the input-decode-map remapping will take precedence, whereas
a function-key-map remapping would be ignored.
It's a tricky business.
> Yes, that was sort of what I meant, but I agree it was a bad idea.
I don't think it's a bad idea, but it seems difficult to come up with
a way to detect actual problematic cases and brings them to the
user's attention (without being annoying, that is).
The best moment to detect those problem is when the global map is
modified, but the functions that are involved are the same as for
input-decode-map ;-)
> But the manual could at least conclude the entire section 22.14 with
> a reminder that since normal bindings do have precedence over all
> three of input-decode-map, local-function-key-map and
> key-translation-map, it's a bad idea to bind anything that collides
> with them such as `ESC O' or `ESC ['. People don't have to understand
> why - just prevent them from binding M-O and M-[.
Sounds right. I'll see about doing that.
Stefan
next prev parent reply other threads:[~2012-11-12 21:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-12 9:06 bug#12868: global keymap preceeds input-decode-map Stefan Guath
2012-11-12 14:32 ` Stefan Monnier
2012-11-12 15:27 ` Stefan Guath
2012-11-12 17:03 ` Stefan Monnier
2012-11-12 17:31 ` Stefan Guath
2012-11-12 21:07 ` Stefan Monnier [this message]
2012-11-15 14:17 ` Stefan Monnier
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=jwv1ufycz90.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=12868@debbugs.gnu.org \
--cc=stefan@automata.se \
/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.