all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "川本 琢二" <kawamoto.takuji@gmail.com>, "Yuan Fu" <casouri@gmail.com>
Cc: 71205@debbugs.gnu.org
Subject: bug#71205: 29.3; Automatic indentation of c-ts-mode doesn't work well for me.
Date: Sun, 26 May 2024 11:12:23 +0300	[thread overview]
Message-ID: <867cfhxa8o.fsf@gnu.org> (raw)
In-Reply-To: <0cbf7e4d-7143-4d7b-82f9-f710110a092b@gmail.com> (kawamoto.takuji@gmail.com)

> Date: Sun, 26 May 2024 13:32:37 +0900
> From: 川本 琢二
>  (Dr.Sc.KAWAMOTO, Takuji) <kawamoto.takuji@gmail.com>
> 
> 1. Start emacs.
> 2. Open the C source code file and write the following content.
> 
> ----------- c source code file begins -------------
> void test(void)
> {
>    do🔳
> ----------- c source code file ends ---------------
> 
> 3. Place the cursor after `do` and press Return.
> 
> Expected behaviour is automatic indentation. I want to move the cursor 
> to the 5th column of the next line.
> However, the observed behavior is NOT indentation. The cursor moves to 
> the 1st column of the next line.

I think this is because the above source code fails to parse.  If you
add a closing brace after the "do" line, and then repeat your recipe,
the cursor goes to column 3.

Yuan, can you please look into this?





  reply	other threads:[~2024-05-26  8:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-26  4:32 bug#71205: 29.3; Automatic indentation of c-ts-mode doesn't work well for me 川本 琢二
2024-05-26  8:12 ` Eli Zaretskii [this message]
2024-06-06  5:25   ` Yuan Fu
2024-06-06 15:53     ` 川本 琢二

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=867cfhxa8o.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=71205@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    --cc=kawamoto.takuji@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.