bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto i


From: Mohammed Sadiq
Subject: bug#60270: 29.0.60; c-ts-mode: Comments are not indented right on auto indentation
Date: Sun, 25 Dec 2022 15:16:53 +0530

On 2022-12-25 14:06, Yuan Fu wrote:
On buffer select-all TAB, for the following comment:

/*
  hello
*/

I get the following in c-mode (no space before */):

/*
  hello
*/

and the following in c-ts-mode (a space before */):

/*
  hello
 */

I have to say I’m not a C veteran, but I feel like the c-ts-mode result
makes more sense. Why do we want

/*
  * hello
  */

but not

/*
  hello
  */

?

Is it like a convention?

I don't know, I was suggesting to have c-ts-mode behave like c-mode.
So, as to avoid unnecessary changes (as it adds unnecessary noise in
version control history, for those who are using one) on buffer
select-all TAB indent and for the people who migrated to c-ts-mode.


CC’ed Alan because he must know this.

Yuan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]