GNU bug report logs - #61813
29.0.60; treesit-indent-region can move parts of a C comment to column 0

Previous Next

Package: emacs;

Reported by: Daniel Martín <mardani29 <at> yahoo.es>

Date: Sun, 26 Feb 2023 13:57:01 UTC

Severity: normal

Found in version 29.0.60

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61813 in the body.
You can then email your comments to 61813 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#61813; Package emacs. (Sun, 26 Feb 2023 13:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Martín <mardani29 <at> yahoo.es>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 26 Feb 2023 13:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Martín <mardani29 <at> yahoo.es>
To: bug-gnu-emacs <at> gnu.org
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.".




Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Fri, 03 Mar 2023 22:24:02 GMT) Full text and rfc822 format available.

Notification sent to Daniel Martín <mardani29 <at> yahoo.es>:
bug acknowledged by developer. (Fri, 03 Mar 2023 22:24:02 GMT) Full text and rfc822 format available.

Message #10 received at 61813-done <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Daniel Martín <mardani29 <at> yahoo.es>
Cc: 61813-done <at> debbugs.gnu.org
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 <at> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 01 Apr 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 43 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.