GNU bug report logs -
#6806
Set comment-multi-line in js-mode
Previous Next
Reported by: Nathan Weizenbaum <nweiz <at> google.com>
Date: Thu, 5 Aug 2010 20:09:02 UTC
Severity: normal
Found in versions 24.0.50.1, 24.5
Fixed in version 25.1
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
Message #32 received at 6806 <at> debbugs.gnu.org (full text, mbox):
Tom Tromey <tom <at> tromey.com> writes:
> Hi. I'd like to resurrect this bug.
>
> While working in JS I found a bug, which I tracked down to the same
> change indicated here. Basically, auto-fill in JS mode will sometimes
> insert a "/*" on a filled line, where it should not.
>
> You can see a precise recipe in the new test case, in the attached
> patch.
>
> One funny thing is that if you do this interactively (in my real-world
> case I had auto-fill-mode enabled), you have to be sure that there isn't
> a newline after point. If there is a newline, the filling works
> properly.
>
> Anyway, let me know what you think. I'd like to check this in, but,
> given the comments in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6806#23
> I suppose I would not close the bug.
Sorry I missed this before you pushed the patch, but I'm not sure this
is a bug. If I revert the setting of `comment-multi-line' then with
your test scenario, the result of auto fill is
/* test test test test test test test test test test test test test */
/* test test test
So the opened comment was correctly terminated, and a new one started,
just as documented. Perhaps you don't like that `comment-multi-line' is
nil by default, but it doesn't look like a bug to me.
This bug report was last modified 8 years and 151 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.