GNU bug report logs - #50840
28.0.50; Support GNU style of multiline comments in C source code

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Mon, 27 Sep 2021 07:57:02 UTC

Severity: wishlist

Found in version 28.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: acm <at> muc.de, Stefan Monnier <monnier <at> iro.umontreal.ca>, 50840 <at> debbugs.gnu.org
Subject: bug#50840: 28.0.50; Support GNU style of multiline comments in C source code
Date: Sun, 03 Oct 2021 20:02:14 +0300
> But there's no style to take a sequence of lines like this:
>
>      First line
>      continuation line with more text,
>      more text.  And another sentence
>      which continues here.
>
> and make it look like this:
>
>      /* First line
>         continuation line with more text,
>         more text.  And another sentence
>         which continues here.  */

Recently lisp/newcomment.el was fixed in bug#47167 and bug#50226
to handle whitespace in 'comment-continue' with the multi-line style.
So you can get the above with:

  (setq-local comment-style 'multi-line
              comment-continue "   ")

PS: It doesn't add double space at the sentence end
since this is a separate feature.




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

Previous Next


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