From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nathan Weizenbaum Newsgroups: gmane.emacs.bugs Subject: bug#6806: Set comment-multi-line in js-mode Date: Mon, 9 Aug 2010 10:56:56 -0700 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016363b8b6c1565ac048d67be5a X-Trace: dough.gmane.org 1281384520 19104 80.91.229.12 (9 Aug 2010 20:08:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Aug 2010 20:08:40 +0000 (UTC) Cc: 6806@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 09 22:08:35 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OiYeA-0005wb-Uu for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Aug 2010 22:08:35 +0200 Original-Received: from localhost ([127.0.0.1]:53227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiYeA-00057Z-43 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Aug 2010 16:08:34 -0400 Original-Received: from [140.186.70.92] (port=43708 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiYe3-00057N-Gk for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 16:08:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiYe1-0004Dl-H4 for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 16:08:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47879) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiYe1-0004C1-E0 for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 16:08:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OiYXs-0001Y1-3k; Mon, 09 Aug 2010 16:02:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nathan Weizenbaum Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Aug 2010 20:02:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6806 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6806-submit@debbugs.gnu.org id=B6806.12813840755904 (code B ref 6806); Mon, 09 Aug 2010 20:02:04 +0000 Original-Received: (at 6806) by debbugs.gnu.org; 9 Aug 2010 20:01:15 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiYX5-0001X8-0O for submit@debbugs.gnu.org; Mon, 09 Aug 2010 16:01:15 -0400 Original-Received: from smtp-out.google.com ([74.125.121.35]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiWa9-0000WL-Vs for 6806@debbugs.gnu.org; Mon, 09 Aug 2010 13:56:19 -0400 Original-Received: from kpbe12.cbf.corp.google.com (kpbe12.cbf.corp.google.com [172.25.105.76]) by smtp-out.google.com with ESMTP id o79Huw2J012352 for <6806@debbugs.gnu.org>; Mon, 9 Aug 2010 10:56:59 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281376619; bh=DDIZ8C2p00Kwn+/ZPONjVJIC+CA=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:From: To:Cc:Content-Type; b=Eqy2+4nG62liZSB2wf1UjX5GjuO4XwVuQmMO1JBTSV11CtohucbbKAimiztncCQz6 TDxjIlPViLXopHqDFFTTA== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=evo325Ivda48Gp1NeBgnfEancS6fiw0Jld4cXXCnvRhkDtOgJSccwdRu3nKEqADsK LS6fLvOiNjBwTgLE+Kuyw== Original-Received: from qwc9 (qwc9.prod.google.com [10.241.193.137]) by kpbe12.cbf.corp.google.com with ESMTP id o79HuQfj026503 for <6806@debbugs.gnu.org>; Mon, 9 Aug 2010 10:56:57 -0700 Original-Received: by qwc9 with SMTP id 9so174567qwc.3 for <6806@debbugs.gnu.org>; Mon, 09 Aug 2010 10:56:57 -0700 (PDT) Original-Received: by 10.229.240.4 with SMTP id ky4mr7528917qcb.104.1281376617063; Mon, 09 Aug 2010 10:56:57 -0700 (PDT) Original-Received: by 10.229.13.97 with HTTP; Mon, 9 Aug 2010 10:56:56 -0700 (PDT) In-Reply-To: X-System-Of-Record: true X-Mailman-Approved-At: Mon, 09 Aug 2010 16:01:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 09 Aug 2010 16:02:04 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39376 Archived-At: --0016363b8b6c1565ac048d67be5a Content-Type: text/plain; charset=ISO-8859-1 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. On Mon, Aug 9, 2010 at 4:33 AM, Stefan Monnier 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 > --0016363b8b6c1565ac048d67be5a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable My fix doesn't actually fix the "/* */" issue, unfortunately.= However, it doesn't break "//" either; note that comment-mul= ti-line is t for e.g. c-mode, and comment-indent-new-line works for "/= /" there.

On Mon, Aug 9, 2010 at 4:33 AM, Stefan Monni= er <monnie= r@iro.umontreal.ca> wrote:
> js-mode doesn't set the comment-multi-line varia= ble. This results in
> comment-indent-new-line behaving improperly when used in a multi-line<= br> > comment, which also affects auto-fill-mode, according to the documenta= tion
> 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.


=A0 =A0 =A0 =A0Stefan

--0016363b8b6c1565ac048d67be5a--