summaryrefslogtreecommitdiff
path: root/lisp/progmodes/js.el
diff options
context:
space:
mode:
authorLawrence Mitchell <wence@gmx.li>2011-06-30 12:22:33 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2011-06-30 12:22:33 -0400
commit1fa280a3def73608707921d7978cb91d23c90cad (patch)
tree165e2870cac4a0eaea2082437bdf180bdc0e5286 /lisp/progmodes/js.el
parente6597158c01c9bc9044b46831c7445f50c60af81 (diff)
downloademacs-1fa280a3def73608707921d7978cb91d23c90cad.tar.gz
emacs-1fa280a3def73608707921d7978cb91d23c90cad.tar.bz2
emacs-1fa280a3def73608707921d7978cb91d23c90cad.zip
* lisp/progmodes/js.el (js-mode): Don't stomp on global settings.
Fixes: debbugs:8933
Diffstat (limited to 'lisp/progmodes/js.el')
-rw-r--r--lisp/progmodes/js.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index a0437ccf9ae..1bdcb4cfa89 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3306,8 +3306,8 @@ If one hasn't been set, or if it's stale, prompt for a new one."
#'js--which-func-joiner)
;; Comments
- (setq comment-start "// ")
- (setq comment-end "")
+ (set (make-local-variable 'comment-start) "// ")
+ (set (make-local-variable 'comment-end) "")
(set (make-local-variable 'fill-paragraph-function)
'js-c-fill-paragraph)