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.

Full log


View this message in rfc822 format

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




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

Previous Next


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