From 1fa280a3def73608707921d7978cb91d23c90cad Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Thu, 30 Jun 2011 12:22:33 -0400 Subject: [PATCH] * lisp/progmodes/js.el (js-mode): Don't stomp on global settings. Fixes: debbugs:8933 --- lisp/ChangeLog | 16 ++++++++++------ lisp/progmodes/js.el | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c82e4325ffe..7613375bf57 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,7 +1,11 @@ +2011-06-30 Lawrence Mitchell + + * progmodes/js.el (js-mode): Don't stomp on global settings (bug#8933). + 2011-06-30 Alan Mackenzie - * progmodes/cc-engine.el (c-guess-continued-construct): Correct - the handling of template-args-cont, particularly for when font + * progmodes/cc-engine.el (c-guess-continued-construct): + Correct the handling of template-args-cont, particularly for when font lock is disabled. Name this case as "CASE G". 2011-06-30 Ken Manheimer @@ -36,8 +40,8 @@ * files.el (hack-local-variables-confirm): Use it. - * custom.el (load-theme): New arg NO-CONFIRM. Use - customize-push-and-save (Bug#8720). + * custom.el (load-theme): New arg NO-CONFIRM. + Use customize-push-and-save (Bug#8720). (custom-enabled-themes): Doc fix. * cus-theme.el (customize-create-theme) @@ -121,8 +125,8 @@ 2011-06-28 Deniz Dogan - * emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table): Unnest - `let'. + * emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table): + Unnest `let'. * textmodes/css-mode.el (css-font-lock-keywords): Fix grouped selectors (Bug#5732). 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) -- 2.11.4.GIT