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

Previous Next

Package: emacs;

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

Date: Tue, 17 Jan 2023 09:08:01 UTC

Severity: normal

Found in version 29.0.60

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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Yuan Fu <casouri <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#60873: closed (29.0.60; c-ts-mode: Some blocks and content
 are not indented right)
Date: Thu, 19 Jan 2023 22:48:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 19 Jan 2023 14:47:20 -0800
with message-id <713B1DF1-D9C3-48DF-831F-4761E404F98C <at> gmail.com>
and subject line Re: bug#60873: 29.0.60; c-ts-mode: Some blocks and content are not  indented right
has caused the debbugs.gnu.org bug report #60873,
regarding 29.0.60; c-ts-mode: Some blocks and content are not indented right
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
60873: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60873
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.60; c-ts-mode: Some blocks and content are not indented right
Date: Tue, 17 Jan 2023 14:37:25 +0530
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


[Message part 3 (message/rfc822, inline)]
From: Yuan Fu <casouri <at> gmail.com>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 60873-done <at> debbugs.gnu.org
Subject: Re: bug#60873: 29.0.60; c-ts-mode: Some blocks and content are not 
 indented right
Date: Thu, 19 Jan 2023 14:47:20 -0800
Mohammed Sadiq <sadiq <at> sadiqpk.org> 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


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

Previous Next


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