Subject: bug#60873: closed (Re: bug#60873: 29.0.60; c-ts-mode: Some blocks and content are not indented right)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 19 Jan 2023 22:48:02 +0000

Your bug report

#60873: 29.0.60; c-ts-mode: Some blocks and content are not indented right

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
60873: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60873
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#60873: 29.0.60; c-ts-mode: Some blocks and content are not indented right
From: Yuan Fu <[email-masked]>
To: Mohammed Sadiq <[email-masked]>
Cc: [email-masked]
Date: Thu, 19 Jan 2023 14:47:20 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Mohammed Sadiq <[email-masked]> writes:

> The following code is indented wrong:
>
> int
> main (int   argc,
>       char *argv[])
> {
>   {
>       int i = 0;
>     }
> }
>
> For which, the expected indentation is:
>
> int
> main (int   argc,
>       char *argv[])
> {
>   {
>     int i = 0;
>   }
> }
>

Thanks! I’ve fixed it and added a test.

Yuan

Subject: 29.0.60; c-ts-mode: Some blocks and content are not indented right
From: Mohammed Sadiq <[email-masked]>
To: [email-masked]
Date: Tue, 17 Jan 2023 14:37:25 +0530
List-Id: <debbugs-submit.debbugs.gnu.org>

The following code is indented wrong:

int
main (int   argc,
       char *argv[])
{
   {
       int i = 0;
     }
}

For which, the expected indentation is:

int
main (int   argc,
       char *argv[])
{
   {
     int i = 0;
   }
}

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