all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: norris <shading.young@gmail.com>
Cc: 62953@debbugs.gnu.org
Subject: bug#62953: 29.0.60; c-ts-mode: extra line indentation is required after brackets
Date: Thu, 20 Apr 2023 09:08:58 +0300	[thread overview]
Message-ID: <83h6tb6q6d.fsf@gnu.org> (raw)
In-Reply-To: <CAL+47W14nYYptZemyvT-Nmp68bHOBh6otwgATKVsTt9F0RT2Rw@mail.gmail.com> (message from norris on Wed, 19 Apr 2023 23:02:20 +0800)

> From: norris <shading.young@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.





  reply	other threads:[~2023-04-20  6:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-19 15:02 bug#62953: 29.0.60; c-ts-mode: extra line indentation is required after brackets norris
2023-04-20  6:08 ` Eli Zaretskii [this message]
     [not found]   ` <CAL+47W2=E49DUM=HKG=JWWYzgGU_ONR7aiCM4J21Wz3C4iipnw@mail.gmail.com>
2023-04-22  2:59     ` bug#62953: Fwd: " norris
2023-04-22  3:18       ` norris
2023-04-22  7:38         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83h6tb6q6d.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=62953@debbugs.gnu.org \
    --cc=shading.young@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.