From: Yuan Fu <casouri@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: xhcoding@foxmail.com, Eli Zaretskii <eliz@gnu.org>,
61997@debbugs.gnu.org
Subject: bug#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body
Date: Tue, 7 Mar 2023 16:44:52 -0800 [thread overview]
Message-ID: <86F83D84-E92B-4891-A015-2FA92858E78A@gmail.com> (raw)
In-Reply-To: <tencent_1E4A31A5AE9C08905758FCC0083CAFA44B07@qq.com>
Dmitry Gutov <dgutov@yandex.ru> writes:
> On 06/03/2023 14:57, Eli Zaretskii wrote:
>>> 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.
>
> Using the gnu style, most of the expressions that the user will type
> will indent with OFFET number of characters, right?
>
> Then it makes sense to indent the open line like that, too.
Right. I fixed this regression on emacs-29.
Yuan
next prev parent reply other threads:[~2023-03-08 0:44 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
2023-03-06 13:11 ` Dmitry Gutov
2023-03-06 13:13 ` xhcoding
2023-03-08 0:44 ` Yuan Fu [this message]
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=86F83D84-E92B-4891-A015-2FA92858E78A@gmail.com \
--to=casouri@gmail.com \
--cc=61997@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=eliz@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.