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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 60873 in the body.
You can then email your comments to 60873 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#60873; Package emacs. (Tue, 17 Jan 2023 09:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mohammed Sadiq <sadiq <at> sadiqpk.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 17 Jan 2023 09:08:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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




Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Thu, 19 Jan 2023 22:48:02 GMT) Full text and rfc822 format available.

Notification sent to Mohammed Sadiq <sadiq <at> sadiqpk.org>:
bug acknowledged by developer. (Thu, 19 Jan 2023 22:48:02 GMT) Full text and rfc822 format available.

Message #10 received at 60873-done <at> debbugs.gnu.org (full text, mbox):

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 17 Feb 2023 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 40 days ago.

Previous Next


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