bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38545: 26.1; comment-multi-line doesn't work in c-mode


From: Lars Ingebrigtsen
Subject: bug#38545: 26.1; comment-multi-line doesn't work in c-mode
Date: Fri, 30 Oct 2020 16:33:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Christophe TROESTLER <Christophe.TROESTLER@umons.ac.be> writes:

> Setting comment-multi-line to `t', commenting a region should “inserts no new 
> terminator or starter.”  However, it is not the case.  For example, selecting 
> two lines in
>
>     int main() 
>     {
>       int a;
>       int b;
>       return(0);
>     }
>
>     /* Local Variables: */
>     /* comment-style: multi-line */
>     /* comment-multi-line: t */
>     /* End: */
>
> yields
>
>       /* int a;
>        * int b; */
>
> while it should be
>
>       /* int a;
>          int b; */

I've stared at that for a while, and I can't see that comment-region has
inserted a new "terminator or starter".  It's inserted a "*" at the
start of the second line, but that's neither of those things.

So I think it's behaving as documented?

However, poking around for two minutes doesn't reveal any obvious way to
get c-mode to stop behaving like this; for instance, setting
comment-continue to something else than what it is just makes it create
single-line comments, confusingly enough.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]