all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#6806: Set comment-multi-line in js-mode
@ 2010-08-05 18:36 Nathan Weizenbaum
  2010-08-08 20:40 ` Chong Yidong
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Nathan Weizenbaum @ 2010-08-05 18:36 UTC (permalink / raw)
  To: 6806


[-- Attachment #1.1: Type: text/plain, Size: 318 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 383 bytes --]

[-- Attachment #2: 0001-Set-comment-multi-line-in-js-mode.patch --]
[-- Type: text/x-patch, Size: 723 bytes --]

From 277d96c62cdfb8b1d862631724f67518152588f3 Mon Sep 17 00:00:00 2001
From: Nathan Weizenbaum <nex342@gmail.com>
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


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-02-15  4:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-05 18:36 bug#6806: Set comment-multi-line in js-mode Nathan Weizenbaum
2010-08-08 20:40 ` Chong Yidong
2010-08-09  0:14   ` Nathan Weizenbaum
2010-08-09 11:33 ` Stefan Monnier
2010-08-09 17:56   ` Nathan Weizenbaum
2010-09-11 13:54     ` Stefan Monnier
2010-09-28 18:11       ` Chong Yidong
2017-01-18  4:56 ` bug#6806: another reason for the patch Tom Tromey
2017-02-04 21:21   ` npostavs
2017-02-04 21:34     ` npostavs
2017-02-11 15:19     ` Tom Tromey
2017-02-12  4:21       ` npostavs
2017-02-12  6:16         ` Tom Tromey
2017-02-15  4:50           ` npostavs
2017-02-04 20:29 ` bug#6806: checked in " Tom Tromey

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.