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>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Vincenzo Pupillo <v.pupillo <at> gmail.com>
To: 70520 <at> debbugs.gnu.org
Subject: 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 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)]

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

Previous Next


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