GNU bug report logs - #61315
29.0.60; c-ts-mode: 'else if' block indentation is broken

Previous Next

Package: emacs;

Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>

Date: Mon, 6 Feb 2023 06:25:01 UTC

Severity: normal

Found in version 29.0.60

Fixed in version 29.1

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 61315 <at> debbugs.gnu.org
Subject: bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is  broken
Date: Mon, 6 Feb 2023 18:31:14 -0800
Yuan Fu <casouri <at> gmail.com> writes:

> Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:
>
>> The following code indentation is broken:
>>
>> int
>> main(void)
>> {
>>   if (a)
>>     {
>>       do_something();
>>     }
>>   else if (b)
>>     {
>> 	do_something_else();
>>     }
>> }
>>
>> Where do_something_else(); statement is indented more than it should be.
>> afair this seems to a recent regression.
>
> This is the indentation I get:
>
> int
> main(void)
> {
>   if (a)
>     {
>       do_something();
>     }
>   else if (b)
>     {
> 	  do_something_else();
>     }
> }
>
> Is that not what it should be?

My bad, I didn’t push the change I recently made. I just pushed them.

Yuan




This bug report was last modified 2 years and 149 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.