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

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

bug#61813: closed (29.0.60; treesit-indent-region can move parts of a C


From: GNU bug Tracking System
Subject: bug#61813: closed (29.0.60; treesit-indent-region can move parts of a C comment to column 0)
Date: Fri, 03 Mar 2023 22:24:02 +0000

Your message dated Fri, 3 Mar 2023 14:23:05 -0800
with message-id <E112F498-8E49-4451-8593-008D87D681D4@gmail.com>
and subject line Re: bug#61813: 29.0.60; treesit-indent-region can move parts 
of a C  comment to column 0
has caused the debbugs.gnu.org bug report #61813,
regarding 29.0.60; treesit-indent-region can move parts of a C comment to 
column 0
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
61813: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61813
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 29.0.60; treesit-indent-region can move parts of a C comment to column 0 Date: Sun, 26 Feb 2023 14:55:57 +0100
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.".



--- End Message ---
--- Begin Message --- Subject: Re: bug#61813: 29.0.60; treesit-indent-region can move parts of a C comment to column 0 Date: Fri, 3 Mar 2023 14:23:05 -0800
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


--- End Message ---

reply via email to

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