From: Eli Zaretskii <eliz@gnu.org>
To: xhcoding <xhcoding@foxmail.com>
Cc: 61997@debbugs.gnu.org
Subject: bug#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body
Date: Mon, 06 Mar 2023 14:57:09 +0200 [thread overview]
Message-ID: <83356i82ca.fsf@gnu.org> (raw)
In-Reply-To: <tencent_1E4A31A5AE9C08905758FCC0083CAFA44B07@qq.com> (message from xhcoding on Mon, 06 Mar 2023 11:03:51 +0800)
> Date: Mon, 06 Mar 2023 11:03:51 +0800
> From: xhcoding <xhcoding@foxmail.com>
>
>
> When the cursor is at the position of the following code,
> pressing tab cannot indent to the correct position.
>
> int add() {
> | <-- pressing tab can not indent
> }
>
> The expected position after pressing the tab:
>
> int add() {
> |
> }
I think you are supposed to switch the indentation style to bsd, and
then it will work. The default is gnu.
next prev parent reply other threads:[~2023-03-06 12:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-06 3:03 bug#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body xhcoding
2023-03-06 12:57 ` Eli Zaretskii [this message]
2023-03-06 13:11 ` Dmitry Gutov
2023-03-06 13:13 ` xhcoding
2023-03-08 0:44 ` Yuan Fu
2023-09-12 0:52 ` Stefan Kangas
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=83356i82ca.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=61997@debbugs.gnu.org \
--cc=xhcoding@foxmail.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.