GNU bug report logs -
#6490
24.0.50; src/lread.c: old style backquote bug?
Previous Next
Reported by: Tetsurou Okazaki <okazaki <at> be.to>
Date: Tue, 22 Jun 2010 09:18:02 UTC
Severity: normal
Merged with 6973,
7148,
7286,
10321
Found in versions 24.0.50, 24.0.92
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 6490 <at> debbugs.gnu.org (full text, mbox):
>> > Attached patch for Emacs fixes this error.
>> I'm glad the patch fixes things for you, since this patch indeed looks
>> perfectly harmless, but I'm a bit puzzled because it doesn't just look
>> harmless: it looks to me like the patch does change anything to the way
>> the code works. So could you explain to me how&why the patch fixes
>> the problem? I'm probably just overlooking some "obvious" detail,
> The changes committed in rev:100605 reassigns the next character to
> the variable `c'. When the next character is SPC (32, #o40, #x20),
> old style backquote is detected.
> if (first_in_list && (c = READCHAR, UNREAD (c), c == ' '))
> {
> Vold_style_backquotes = Qt;
> goto default_label;
> }
> But backquote handling is skipped because `c' is SPC.
> default_label:
> if (c <= 040) goto retry;
> ... old style backquote handling ...
> My patch avoids reassignment of `c' not to skip old style
> backquote handling.
Thanks, that makes perfect sense now. I've installed it now.
> To keep more compatibility with released Emacs, it is preferable to
> allow a character such as \r or \n after the old style backquote.
I haven't seen any such situation yet, and since old-style backquotes are
on the way out (effectively obsolete since something like Emacs-20, and
officially obsolete since Emacs-22.1), I'll wait to see actual cases
before adding such exceptions,
Stefan
This bug report was last modified 13 years and 156 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.