* bug#10940: Emacs 24: regression reading comma
@ 2012-03-04 17:11 Chris Leyon
2012-03-05 2:47 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Chris Leyon @ 2012-03-04 17:11 UTC (permalink / raw)
To: 10940
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: )
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#10940: Emacs 24: regression reading comma
2012-03-04 17:11 bug#10940: Emacs 24: regression reading comma Chris Leyon
@ 2012-03-05 2:47 ` Stefan Monnier
2012-03-05 3:13 ` Chong Yidong
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2012-03-05 2:47 UTC (permalink / raw)
To: Chris Leyon; +Cc: 10940
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#10940: Emacs 24: regression reading comma
2012-03-05 2:47 ` Stefan Monnier
@ 2012-03-05 3:13 ` Chong Yidong
0 siblings, 0 replies; 3+ messages in thread
From: Chong Yidong @ 2012-03-05 3:13 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 10940, Chris Leyon
Stefan Monnier <monnier@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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-05 3:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-04 17:11 bug#10940: Emacs 24: regression reading comma Chris Leyon
2012-03-05 2:47 ` Stefan Monnier
2012-03-05 3:13 ` Chong Yidong
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.