GNU bug report logs - #6806
Set comment-multi-line in js-mode

Previous Next

Package: emacs;

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 #20 received at 6806 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Nathan Weizenbaum <nweiz <at> google.com>
Cc: 6806 <at> debbugs.gnu.org
Subject: Re: bug#6806: Set comment-multi-line in js-mode
Date: Sat, 11 Sep 2010 15:54:37 +0200
> My fix doesn't actually fix the "/* */" issue, unfortunately. However, it
> doesn't break "//" either; note that comment-multi-line is t for e.g.
> c-mode, and comment-indent-new-line works for "//" there.

Indeed, I misremembered.  Feel free to install this patch.


        Stefan
        

> On Mon, Aug 9, 2010 at 4:33 AM, Stefan Monnier <monnier <at> iro.umontreal.ca>wrote:

>> > js-mode doesn't set the comment-multi-line variable. This results in
>> > comment-indent-new-line behaving improperly when used in a multi-line
>> > comment, which also affects auto-fill-mode, according to the
>> documentation
>> > for comment-multi-line.
>> 
>> If I understand and remember correctly, this is not the right fix for
>> your problem: setting comment-multi-line to t will fix your problem with
>> "/*..*/" but will introduce another for "//....\n" and vice-versa.
>> 
>> 
>> Stefan
>> 




This bug report was last modified 8 years and 152 days ago.

Previous Next


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