* bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
@ 2017-11-08 2:54 Fox Kiester
2017-11-08 14:59 ` Drew Adams
2019-11-11 2:32 ` Stefan Kangas
0 siblings, 2 replies; 5+ messages in thread
From: Fox Kiester @ 2017-11-08 2:54 UTC (permalink / raw)
To: 29203
[-- Attachment #1: Type: text/plain, Size: 366 bytes --]
According to the docstring of define-key, a cons of (MAP . CHAR) is a valid
key definition that will act as CHAR in MAP. This worked in previous
versions of Emacs but now causes an error when the keybinding is executed:
"Wrong type argument: commandp..."
Initial discussion took place here:
https://emacs.stackexchange.com/questions/36641/binding-a-key-to-map-char
[-- Attachment #2: Type: text/html, Size: 521 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
2017-11-08 2:54 bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works Fox Kiester
@ 2017-11-08 14:59 ` Drew Adams
2019-11-11 2:32 ` Stefan Kangas
1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2017-11-08 14:59 UTC (permalink / raw)
To: Fox Kiester, 29203
This is apparently a regression, introduced in Emacs 24.
The problem does not exist in Emacs 20 through Emacs 23.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
2017-11-08 2:54 bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works Fox Kiester
2017-11-08 14:59 ` Drew Adams
@ 2019-11-11 2:32 ` Stefan Kangas
2019-11-11 3:51 ` Drew Adams
1 sibling, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2019-11-11 2:32 UTC (permalink / raw)
To: Fox Kiester; +Cc: 29203
found 29203 27.0.50
thanks
Fox Kiester <foxkies@gmail.com> writes:
> According to the docstring of define-key, a cons of (MAP . CHAR) is
> a valid key definition that will act as CHAR in MAP. This worked in
> previous versions of Emacs but now causes an error when the
> keybinding is executed: "Wrong type argument: commandp..."
>
> Initial discussion took place here: https://emacs.stackexchange.com/questions/36641/binding-a-key-to-map-char
I can reproduce this using:
0. (define-key global-map (kbd "C-c ,") (cons help-map ?r))
1. C-c ,
Drew Adams <drew.adams@oracle.com> writes:
> This is apparently a regression, introduced in Emacs 24.
> The problem does not exist in Emacs 20 through Emacs 23.
So was the behaviour changed willingly? That is, is this a bug in the
documentation or in the code?
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
2019-11-11 2:32 ` Stefan Kangas
@ 2019-11-11 3:51 ` Drew Adams
2019-11-11 19:09 ` Stefan Kangas
0 siblings, 1 reply; 5+ messages in thread
From: Drew Adams @ 2019-11-11 3:51 UTC (permalink / raw)
To: Stefan Kangas, Fox Kiester; +Cc: 29203
> found 29203 27.0.50
> thanks
>
> I can reproduce this using:
>
> 0. (define-key global-map (kbd "C-c ,") (cons help-map ?r))
> 1. C-c ,
>
> > This is apparently a regression, introduced in Emacs 24.
> > The problem does not exist in Emacs 20 through Emacs 23.
>
> So was the behaviour changed willingly? That is, is this a bug in the
> documentation or in the code?
Not sure whom you're asking (maybe anyone who knows?),
but IMO it's an (unannounced?) incompatible step
backward. Stefan seems to have agreed that it's just
a code bug, in the cited emacs.SE comments.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
2019-11-11 3:51 ` Drew Adams
@ 2019-11-11 19:09 ` Stefan Kangas
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Kangas @ 2019-11-11 19:09 UTC (permalink / raw)
To: Drew Adams; +Cc: Fox Kiester, 29203
Drew Adams <drew.adams@oracle.com> writes:
> Not sure whom you're asking (maybe anyone who knows?),
Yes, anyone who knows. Thanks for replying.
> but IMO it's an (unannounced?) incompatible step
> backward. Stefan seems to have agreed that it's just
> a code bug, in the cited emacs.SE comments.
OK, unless anyone says something else, let's treat that as
authoritative.
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-11-11 19:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-08 2:54 bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works Fox Kiester
2017-11-08 14:59 ` Drew Adams
2019-11-11 2:32 ` Stefan Kangas
2019-11-11 3:51 ` Drew Adams
2019-11-11 19:09 ` Stefan Kangas
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).