GNU bug report logs -
#11314
24.1.50; Regression: incorrect Lisp indentation for `if' with `@@@@@@'
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Mon, 23 Apr 2012 00:58:01 UTC
Severity: minor
Tags: confirmed
Merged with 24542
Found in versions 24.1.50, 25.1.50, 27.0.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Nov 01 2019, Stefan Kangas wrote:
> found 11314 27.0.50
> thanks
>
> "Drew Adams" <drew.adams <at> oracle.com> writes:
>
>> emacs -Q
>>
>> Type this into an Emacs Lisp buffer:
>>
>> (if (alpha beta) C-j aaaaaa C-j bbbbbb
>>
>> You get this:
>>
>> (if (alpha beta)
>> aaaaaa
>> bbbbbb
>>
>> That is correct. bbbbbb is indented correctly.
>>
>> Now do the same thing, using @@@@@@ instead of aaaaaa. This is the
>> result - bbbbbb is indented incorrectly.
>>
>> (if (alpha beta)
>> @@@@@@
>> bbbbbb
>>
>> Yet @@@@@@ is a perfectly good symbol/variable name etc.
>>
>> This regression was introduced in Emacs 22.
>
> I can reproduce this on current master.
That's because @ has the prefix syntax flag (for ,@).
Andreas.
--
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
This bug report was last modified 1 year and 38 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.