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

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

bug#61893: 29.0.60; Indentation in c-ts-mode broken again


From: Eli Zaretskii
Subject: bug#61893: 29.0.60; Indentation in c-ts-mode broken again
Date: Mon, 06 Mar 2023 14:58:46 +0200

> From: Yuan Fu <casouri@gmail.com>
> Date: Sun, 5 Mar 2023 15:26:45 -0800
> Cc: Theodor Thornhill <theo@thornhill.no>,
>  Daniel Martín <mardani29@yahoo.es>,
>  61893@debbugs.gnu.org
> 
> > Line 3381 of dispnew.c: type "C-e RET" -- point goes to the correct
> > column, but line 3381 is reindented incorrectly.
> 
> This is due to it aligning to the previous sibling, aka the comment. Do we 
> want to skip comments for the “align to the prev sibling” rule?

No, this behavior is okay.

> > Lines 34529 and 34530 of xdisp.c: "C-e RET" produces incorrect column
> > of point and reindents line 34530.
> 
> The preproc directive messed the parse tree, and tree-sitter can’t tell that 
> it’s an else statement, so it can’t be easily fixed sadly.

I see.

Thanks for the other fixes.  I'm closing this bug.





reply via email to

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