GNU bug report logs - #10940
Emacs 24: regression reading comma

Previous Next

Package: emacs;

Reported by: Chris Leyon <cleyon <at> gmail.com>

Date: Sun, 4 Mar 2012 17:14:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10940 in the body.
You can then email your comments to 10940 AT debbugs.gnu.org in the normal way.

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#10940; Package emacs. (Sun, 04 Mar 2012 17:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chris Leyon <cleyon <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 04 Mar 2012 17:14:02 GMT) Full text and rfc822 format available.

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

From: Chris Leyon <cleyon <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs 24: regression reading comma
Date: Sun, 4 Mar 2012 12:11:28 -0500
In Emacs 23, the lisp reader correctly parses a comma when reading an
event modifier, as in the following example specifying the character
C-,
    (global-set-key [(control ,)] 'my-command)

The Emacs 24 reader gives the following error when parsing the same expression:
    Invalid read syntax: )




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10940; Package emacs. (Mon, 05 Mar 2012 02:49:02 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Chris Leyon <cleyon <at> gmail.com>
Cc: 10940 <at> debbugs.gnu.org
Subject: Re: bug#10940: Emacs 24: regression reading comma
Date: Sun, 04 Mar 2012 21:47:36 -0500
> In Emacs 23, the lisp reader correctly parses a comma when reading an
> event modifier, as in the following example specifying the character
> C-,
>     (global-set-key [(control ,)] 'my-command)

You did not realize, but the above relies on the old-style backquote
syntax, which has been further phased out (it's been obsolete for a very
long time now).  So now (control ,) fails in the same way as (control
').  Use [(control ?,)] or [(control \,)] instead (which will work for
older emacsen as well).


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10940; Package emacs. (Mon, 05 Mar 2012 03:16:02 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 10940 <at> debbugs.gnu.org, Chris Leyon <cleyon <at> gmail.com>
Subject: Re: bug#10940: Emacs 24: regression reading comma
Date: Mon, 05 Mar 2012 11:13:53 +0800
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> In Emacs 23, the lisp reader correctly parses a comma when reading an
>> event modifier, as in the following example specifying the character
>> C-,
>>     (global-set-key [(control ,)] 'my-command)
>
> You did not realize, but the above relies on the old-style backquote
> syntax, which has been further phased out (it's been obsolete for a very
> long time now).  So now (control ,) fails in the same way as (control
> ').  Use [(control ?,)] or [(control \,)] instead (which will work for
> older emacsen as well).

I've added a note to etc/NEWS about this.




bug closed, send any further explanations to 10940 <at> debbugs.gnu.org and Chris Leyon <cleyon <at> gmail.com> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 05 Mar 2012 03:16:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 02 Apr 2012 11:24:02 GMT) Full text and rfc822 format available.

Severity set to 'minor' from 'normal' Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Wed, 01 Oct 2014 23:25:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 347 days ago.

Previous Next


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