GNU bug report logs - #70520
30.0.50; [PATCH] c-ts-common-comment-indent-new-line does nothing when the comment line in a block starts with whitespace.

Previous Next

Package: emacs;

Reported by: Vincenzo Pupillo <v.pupillo <at> gmail.com>

Date: Mon, 22 Apr 2024 20:17:03 UTC

Severity: normal

Tags: patch

Found in version 30.0.50

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

To reply to this bug, email your comments to 70520 AT debbugs.gnu.org.
There is no need to reopen the bug first.

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#70520; Package emacs. (Mon, 22 Apr 2024 20:17:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vincenzo Pupillo <v.pupillo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 22 Apr 2024 20:17:03 GMT) Full text and rfc822 format available.

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

From: Vincenzo Pupillo <v.pupillo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50;
 [PATCH] c-ts-common-comment-indent-new-line does nothing when the comment
 line in a block starts with whitespace.
Date: Mon, 22 Apr 2024 22:16:07 +0200
[Message part 1 (text/plain, inline)]
Hello, 
the new function c-ts-common-comment-indent-new-line has a different behavior 
from comment-indent-new-line in c-mode.
In a comment block like this:
/*
   Lorem ipsum dolor sit amet, consectetur adipiscing elit, 
   sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
*/
M-j does not break the line or indent. The cursor simply stands still.
The attached patch handles this case.

Thank you.
V.
[0001-Cover-more-c-ts-common-comment-indent-new-line.patch (text/x-patch, attachment)]

Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Tue, 23 Apr 2024 04:58:01 GMT) Full text and rfc822 format available.

Notification sent to Vincenzo Pupillo <v.pupillo <at> gmail.com>:
bug acknowledged by developer. (Tue, 23 Apr 2024 04:58:01 GMT) Full text and rfc822 format available.

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

From: Yuan Fu <casouri <at> gmail.com>
To: Vincenzo Pupillo <v.pupillo <at> gmail.com>
Cc: 70520-done <at> debbugs.gnu.org
Subject: Re: bug#70520: 30.0.50; [PATCH] c-ts-common-comment-indent-new-line
 does nothing when the comment line in a block starts with whitespace.
Date: Mon, 22 Apr 2024 21:57:10 -0700
[Message part 1 (text/plain, inline)]

> On Apr 22, 2024, at 1:16 PM, Vincenzo Pupillo <v.pupillo <at> gmail.com> wrote:
> 
> Hello, 
> the new function c-ts-common-comment-indent-new-line has a different behavior 
> from comment-indent-new-line in c-mode.
> In a comment block like this:
> /*
>   Lorem ipsum dolor sit amet, consectetur adipiscing elit, 
>   sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
> */
> M-j does not break the line or indent. The cursor simply stands still.
> The attached patch handles this case.
> 
> Thank you.
> V.
[0001-Cover-more-c-ts-common-comment-indent-new-line.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
Merged, thank you!

Yuan

This bug report was last modified 11 days ago.

Previous Next


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