all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>, 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, 6 Mar 2023 15:11:03 +0200	[thread overview]
Message-ID: <2c94a05f-9086-eb64-33dc-9f7118bb372b@yandex.ru> (raw)
In-Reply-To: <83356i82ca.fsf@gnu.org>

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.





  reply	other threads:[~2023-03-06 13:11 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 [this message]
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=2c94a05f-9086-eb64-33dc-9f7118bb372b@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=61997@debbugs.gnu.org \
    --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.