From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 11325@debbugs.gnu.org
Subject: bug#11325: 24.1.50; regression: bad order for `substitute-command-keys' with keymap
Date: Fri, 29 Apr 2016 18:35:09 +0200 [thread overview]
Message-ID: <87mvocz83m.fsf@gnus.org> (raw)
In-Reply-To: <87oa8tixro.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 28 Apr 2016 17:00:27 +0200")
Here's a test case that's easier to work with.
(defvar foo-map
(let ((map (make-keymap)))
(define-key map "a" 'left-char)
(define-key map "f" 'right-char)
(define-key map "g" 'right-char)
(define-key map "z" 'left-char)
map))
This gives the following wrong output:
(insert (substitute-command-keys "\\{foo-map}"))
key binding
--- -------
f .. g right-char
a left-char
z left-char
If I use a `make-sparse-keymap' instead, I get the following, correct
output:
key binding
--- -------
a left-char
f .. g right-char
z left-char
So in non-sparse keymaps, there's something odd about how consecutive
key bindings are represented, and this leaks out in
`substitute-command-keys'.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2016-04-29 16:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 15:11 bug#11325: 24.1.50; regression: bad order for `substitute-command-keys' with keymap Drew Adams
2012-09-17 0:02 ` Drew Adams
2014-02-10 4:59 ` Lars Ingebrigtsen
2014-02-10 5:09 ` Drew Adams
2016-04-28 14:43 ` Lars Ingebrigtsen
2016-04-28 15:00 ` Lars Ingebrigtsen
2016-04-29 16:35 ` Lars Ingebrigtsen [this message]
2022-01-31 16:32 ` Lars Ingebrigtsen
2022-01-31 16:38 ` bug#11325: [External] : " Drew Adams
2021-10-20 21:32 ` Stefan Kangas
2021-10-21 3:11 ` Lars Ingebrigtsen
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=87mvocz83m.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=11325@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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.