Subject: Set comment-multi-line in js-mode

From: Nathan Weizenbaum <[email-masked]>
Date: Thu, 5 Aug 2010 11:36:41 -0700

Package: emacs
Version: 24.0.50.1

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.

Attached is a patch that sets the variable.
From 277d96c62cdfb8b1d862631724f67518152588f3 Mon Sep 17 00:00:00 2001
From: Nathan Weizenbaum <[email-masked]>
Date: Tue, 3 Aug 2010 17:46:33 -0700
Subject: [PATCH] Set comment-multi-line in js-mode.

---
 lisp/progmodes/js.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 6bd8fbc..023d253 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3302,6 +3302,7 @@ Key bindings:
   (setq comment-end "")
   (set (make-local-variable 'fill-paragraph-function)
        'js-c-fill-paragraph)
+  (set (make-local-variable 'comment-multi-line) t)
 
   ;; Parse cache
   (add-hook 'before-change-functions #'js--flush-caches t t)
-- 
1.7.1