GNU bug report logs - #29203
26.0.50; Binding a key to (MAP . CHAR) no longer works

Previous Next

Package: emacs;

Reported by: Fox Kiester <foxkies <at> gmail.com>

Date: Wed, 8 Nov 2017 03:20:01 UTC

Severity: normal

Found in versions 27.0.50, 26.0.50

To reply to this bug, email your comments to 29203 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#29203; Package emacs. (Wed, 08 Nov 2017 03:20:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fox Kiester <foxkies <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 08 Nov 2017 03:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Fox Kiester <foxkies <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.50; Binding a key to (MAP . CHAR) no longer works
Date: Tue, 7 Nov 2017 21:54:32 -0500
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#29203; Package emacs. (Wed, 08 Nov 2017 15:00:01 GMT) Full text and rfc822 format available.

Message #8 received at 29203 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Fox Kiester <foxkies <at> gmail.com>, 29203 <at> debbugs.gnu.org
Subject: RE: bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
Date: Wed, 8 Nov 2017 06:59:47 -0800 (PST)
This is apparently a regression, introduced in Emacs 24.
The problem does not exist in Emacs 20 through Emacs 23.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#29203; Package emacs. (Mon, 11 Nov 2019 02:34:02 GMT) Full text and rfc822 format available.

Message #11 received at 29203 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Fox Kiester <foxkies <at> gmail.com>
Cc: 29203 <at> debbugs.gnu.org, Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
Date: Mon, 11 Nov 2019 03:32:57 +0100
found 29203 27.0.50
thanks

Fox Kiester <foxkies <at> 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 <at> 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




bug Marked as found in versions 27.0.50. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Mon, 11 Nov 2019 02:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#29203; Package emacs. (Mon, 11 Nov 2019 03:52:01 GMT) Full text and rfc822 format available.

Message #16 received at 29203 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Stefan Kangas <stefan <at> marxist.se>, Fox Kiester <foxkies <at> gmail.com>
Cc: 29203 <at> debbugs.gnu.org
Subject: RE: bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
Date: Mon, 11 Nov 2019 03:51:17 +0000 (UTC)
> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#29203; Package emacs. (Mon, 11 Nov 2019 19:11:01 GMT) Full text and rfc822 format available.

Message #19 received at 29203 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: Fox Kiester <foxkies <at> gmail.com>, 29203 <at> debbugs.gnu.org
Subject: Re: bug#29203: 26.0.50; Binding a key to (MAP . CHAR) no longer works
Date: Mon, 11 Nov 2019 20:09:53 +0100
Drew Adams <drew.adams <at> 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




This bug report was last modified 5 years and 305 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.