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


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: 'else if' block indentation is broken
Date: Mon, 06 Feb 2023 11:53:55 +0530
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




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.