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, 08 Jan 2023 15:32:22 +0530

On 2023-01-08 04:58, Yuan Fu wrote:
Mohammed Sadiq <sadiq@sadiqpk.org> writes:

Now it indents properly when selecting the comment and TAB,
but if point is inside the comment, the line indents further
breaking the indentation.

example, for the following code:

/*
 * Some comment
 */

and I place the point to be between '*' and '/' in the comment
and or somewhere in the "Some comment" string, and then press
TAB, the line indents further, breaking the indentation.

Ah, yes. I fixed that. Thanks for the report.

Yuan

There is one more case that's broken:

int
main (void)
{
  /*
Some comment
   */
}


Where I expect it to be:

int
main (void)
{
  /*
     Some comment
  */
}






reply via email to

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