unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is broken
@ 2023-02-06  6:23 Mohammed Sadiq
  2023-02-07  2:25 ` Yuan Fu
  2023-02-07  2:31 ` Yuan Fu
  0 siblings, 2 replies; 3+ messages in thread
From: Mohammed Sadiq @ 2023-02-06  6:23 UTC (permalink / raw)
  To: 61315

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.


In GNU Emacs 29.0.60 (build 14, x86_64-pc-linux-gnu, GTK+ Version
  3.24.36, cairo version 1.16.0) of 2023-02-06 built on purism
Repository revision: 79ab62e0bb5d6185a358a2473c65b6461ea97793
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 
11.0.12101006
System Description: Debian GNU/Linux bookworm/sid





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is  broken
  2023-02-06  6:23 bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is broken Mohammed Sadiq
@ 2023-02-07  2:25 ` Yuan Fu
  2023-02-07  2:31 ` Yuan Fu
  1 sibling, 0 replies; 3+ messages in thread
From: Yuan Fu @ 2023-02-07  2:25 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 61315


Mohammed Sadiq <sadiq@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?

Yuan





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is  broken
  2023-02-06  6:23 bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is broken Mohammed Sadiq
  2023-02-07  2:25 ` Yuan Fu
@ 2023-02-07  2:31 ` Yuan Fu
  1 sibling, 0 replies; 3+ messages in thread
From: Yuan Fu @ 2023-02-07  2:31 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 61315


Yuan Fu <casouri@gmail.com> writes:

> Mohammed Sadiq <sadiq@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-07  2:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-06  6:23 bug#61315: 29.0.60; c-ts-mode: 'else if' block indentation is broken Mohammed Sadiq
2023-02-07  2:25 ` Yuan Fu
2023-02-07  2:31 ` Yuan Fu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).