GNU bug report logs - #71205
29.3; Automatic indentation of c-ts-mode doesn't work well for me.

Previous Next

Package: emacs;

Reported by: 川本 琢二 (Dr.Sc.KAWAMOTO,Takuji) <kawamoto.takuji <at> gmail.com>

Date: Sun, 26 May 2024 07:38:01 UTC

Severity: normal

Found in version 29.3

Full log


Message #8 received at 71205 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 川本 琢二(Dr.Sc.KAWAMOTO, Takuji) <kawamoto.takuji <at> gmail.com>,
 Yuan Fu <casouri <at> gmail.com>
Cc: 71205 <at> debbugs.gnu.org
Subject: Re: 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
> Date: Sun, 26 May 2024 13:32:37 +0900
> From: 川本 琢二
>  (Dr.Sc.KAWAMOTO, Takuji) <kawamoto.takuji <at> 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?




This bug report was last modified 105 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.