GNU bug report logs - #61314
29.0.60; c-ts-mode: Multiline comment indentation broken if starting with a '-'

Previous Next

Package: emacs;

Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>

Date: Mon, 6 Feb 2023 06:13: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 61314 in the body.
You can then email your comments to 61314 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#61314; Package emacs. (Mon, 06 Feb 2023 06:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mohammed Sadiq <sadiq <at> sadiqpk.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 06 Feb 2023 06:13:02 GMT) Full text and rfc822 format available.

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

From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.60; c-ts-mode: Multiline comment indentation broken if starting
 with a '-'
Date: Mon, 06 Feb 2023 11:42:00 +0530
The following multi line comment is indented wrong:

/*
  - item1
    - item2
      - item3
 */

The following output is expected instead:

/*
  - item1
  - item2
  - item3
*/


In GNU Emacs 29.0.60 (build 14, x86_64-pc-linux-gnu, GTK+ Version
 3.24.36, cairo version 1.16.0) of 2023-02-06 built on purism
Repository revision: 79ab62e0bb5d6185a358a2473c65b6461ea97793
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 
11.0.12101006
System Description: Debian GNU/Linux bookworm/sid




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61314; Package emacs. (Fri, 10 Feb 2023 01:28:01 GMT) Full text and rfc822 format available.

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

From: Yuan Fu <casouri <at> gmail.com>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 61314 <at> debbugs.gnu.org
Subject: Re: bug#61314: 29.0.60; c-ts-mode: Multiline comment indentation 
 broken if starting with a '-'
Date: Thu, 9 Feb 2023 17:27:21 -0800
Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:

> The following multi line comment is indented wrong:
>
> /*
>   - item1
>     - item2
>       - item3
>  */
>
> The following output is expected instead:
>
> /*
>   - item1
>   - item2
>   - item3
> */

Thanks, I’ll see how to deal with this. c-mode seems to handle this just
fine. I need to check how does it indent this kind of things.

Yuan




Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Sun, 19 Feb 2023 20:42:01 GMT) Full text and rfc822 format available.

Notification sent to Mohammed Sadiq <sadiq <at> sadiqpk.org>:
bug acknowledged by developer. (Sun, 19 Feb 2023 20:42:02 GMT) Full text and rfc822 format available.

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

From: Yuan Fu <casouri <at> gmail.com>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 61314-done <at> debbugs.gnu.org
Subject: Re: bug#61314: 29.0.60; c-ts-mode: Multiline comment indentation 
 broken if starting with a '-'
Date: Sun, 19 Feb 2023 12:34:43 -0800
Yuan Fu <casouri <at> gmail.com> writes:

> Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:
>
>> The following multi line comment is indented wrong:
>>
>> /*
>>   - item1
>>     - item2
>>       - item3
>>  */
>>
>> The following output is expected instead:
>>
>> /*
>>   - item1
>>   - item2
>>   - item3
>> */
>
> Thanks, I’ll see how to deal with this. c-mode seems to handle this just
> fine. I need to check how does it indent this kind of things.

Ok, this should work now!

Yuan




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

This bug report was last modified 1 year and 31 days ago.

Previous Next


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