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

Previous Next

Package: emacs;

Reported by: norris <shading.young <at> gmail.com>

Date: Wed, 19 Apr 2023 19:59:02 UTC

Severity: normal

Found in version 29.0.60

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: norris <shading.young <at> gmail.com>
Cc: 62953 <at> debbugs.gnu.org
Subject: Re: bug#62953: 29.0.60;
 c-ts-mode: extra line indentation is required after brackets
Date: Thu, 20 Apr 2023 09:08:58 +0300
> From: norris <shading.young <at> gmail.com>
> 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.




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

Previous Next


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