all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#61026: 29.0.60; c-ts-mode: Broken indentation for loops and conditions without brace
@ 2023-01-23 11:17 Mohammed Sadiq
  2023-01-25 20:21 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Mohammed Sadiq @ 2023-01-23 11:17 UTC (permalink / raw)
  To: 61026

The following code has broken indentation with c-ts-mode:

   while (true)
     if (true) {
     puts ("Hello");
   }

   if (true)
     if (true)
       {
       puts ("World");
     }

For which, I expect to get the following indentation (with default 
config):

   while (true)
     if (true) {
       puts ("Hello");
     }

   if (true)
     if (true)
       {
         puts ("World");
       }



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-23 built on purism
Repository revision: e6c5f32e77dceed4e26b16889cc56547093bdc45
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] 9+ messages in thread

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-23 11:17 bug#61026: 29.0.60; c-ts-mode: Broken indentation for loops and conditions without brace Mohammed Sadiq
2023-01-25 20:21 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-26  7:54 ` Yuan Fu
2023-01-26  7:57   ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-29  8:22 ` Yuan Fu
2023-01-29  8:55   ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-05 20:32 ` Knut Anders Hatlen
2023-02-07  2:30 ` Yuan Fu
2023-02-07 10:41   ` Knut Anders Hatlen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.