Subject: bug#62953: 29.0.60; c-ts-mode: extra line indentation is required after brackets

From: Eli Zaretskii <[email-masked]>
Date: Thu, 20 Apr 2023 09:08:58 +0300

> From: norris <[email-masked]>
> Date: Wed, 19 Apr 2023 23:02:20 +0800
> 
> In c-mode, it will add an extra line for RET after brackets. The same behaviour is expected in
> c-ts-mode.
> 
> For example(where '|' stands for cursor):
> 
> ```
> if (a) {|}
> ```
> 
> After RET in c-mode:
> 
> ```
> if (a) {
>     |
> }
> ```
> 
> After RET in c-ts-mode:
> 
> ```
> if (a) {
> |}
> ```
> 
> Not only if statement but also other cases with brackets want this.

I cannot reproduce this with the latest emacs-29 branch.

> ====================================================
> In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version
>  3.24.37, cairo version 1.17.8) of 2023-03-14 built on spectre
> Repository revision: e98f7f8a063a30d1a5effb9e623265019bf2553b
> Repository branch: emacs-29
> System Description: Arch Linux

This is a month-old snapshot of emacs-29.  So maybe the problem was
fixed meanwhile.  Or maybe you didn't describe all the steps needed to
reproduce the issue.  In particular, the if cause you show is supposed
to be inside a function's body, but you don't show the rest of that
body.  So please provide a step by step description of the recipe to
reproduce the issue, starting from "emacs -Q".

Thanks.