* bug#61813: 29.0.60; treesit-indent-region can move parts of a C comment to column 0
[not found] <m1h6v8bkeq.fsf.ref@yahoo.es>
@ 2023-02-26 13:55 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-03 22:23 ` Yuan Fu
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-02-26 13:55 UTC (permalink / raw)
To: 61813
Steps to reproduce the problem:
emacs -Q
C-x b sample RET
M-x c-ts-mode
Paste the following code:
/*
First part of a comment.
Second part of a comment.
*/
C-x h
TAB
Expected results:
The buffer is not modified.
Actual results:
/*
First part of a comment.
Second part of a comment.
*/
This bug does not happen if I TAB the original code line by line. It
also does not happen if I remove the extra newline between "First part
of a comment." and "Second part of a comment.".
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#61813: 29.0.60; treesit-indent-region can move parts of a C comment to column 0
2023-02-26 13:55 ` bug#61813: 29.0.60; treesit-indent-region can move parts of a C comment to column 0 Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-03 22:23 ` Yuan Fu
0 siblings, 0 replies; 2+ messages in thread
From: Yuan Fu @ 2023-03-03 22:23 UTC (permalink / raw)
To: Daniel Martín; +Cc: 61813-done
Daniel Martín <mardani29@yahoo.es> writes:
> Steps to reproduce the problem:
>
> emacs -Q
> C-x b sample RET
> M-x c-ts-mode
>
> Paste the following code:
>
> /*
> First part of a comment.
>
> Second part of a comment.
> */
>
> C-x h
> TAB
>
> Expected results:
>
> The buffer is not modified.
>
> Actual results:
>
> /*
> First part of a comment.
>
> Second part of a comment.
> */
>
> This bug does not happen if I TAB the original code line by line. It
> also does not happen if I remove the extra newline between "First part
> of a comment." and "Second part of a comment.".
It should be fixed now, thanks for the report!
Yuan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-03-03 22:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <m1h6v8bkeq.fsf.ref@yahoo.es>
2023-02-26 13:55 ` bug#61813: 29.0.60; treesit-indent-region can move parts of a C comment to column 0 Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-03 22:23 ` Yuan Fu
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).