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.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Chris Leyon <cleyon <at> gmail.com>
Cc: 10940 <at> debbugs.gnu.org
Subject: 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




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.