bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11314: 24.1.50; Regression: incorrect Lisp indentation for `if' with


From: Andreas Schwab
Subject: bug#11314: 24.1.50; Regression: incorrect Lisp indentation for `if' with `@@@@@@'
Date: Fri, 01 Nov 2019 21:44:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

On Nov 01 2019, Stefan Kangas wrote:

> found 11314 27.0.50
> thanks
>
> "Drew Adams" <drew.adams@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@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]