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


View this message in rfc822 format

From: Yuan Fu <casouri <at> gmail.com>
To: "川本 琢二 (Dr.Sc.KAWAMOTO,Takuji)" <kawamoto.takuji <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 71205 <at> debbugs.gnu.org
Subject: bug#71205: 29.3; Automatic indentation of c-ts-mode doesn't work well for me.
Date: Wed, 5 Mar 2025 07:04:11 -0800

> On Jun 6, 2024, at 8:53 AM, 川本 琢二 (Dr.Sc.KAWAMOTO,Takuji) <kawamoto.takuji <at> gmail.com> wrote:
> 
> Thanks for your answer, Mr Yuan.
> This answer solved the original problem.
> 
> Instead, I think a new problem has been revealed.
> What we should expect is for the cursor to move to column 5, because that's gnu style.
> But it actually moves to column 3.
> 
> Thanks all.

Oops, sorry for missing the reply. The problem you’re seeing is also due to incomplete parse tree. Once you enter a statement or opening bracket, the indentation will be updated to column 5. Admittedly, we could add some heuristic indentation rule for it, but in practice, since the indentation corrects itself rather quickly, it hasn’t really been an issue and I never get to it.

Adding such heuristic isn’t simple and I have so much else to implement so I don’t think I’ll get to it anytime soon.

Yuan



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.