diff options
author | Lawrence Mitchell <wence@gmx.li> | 2011-06-30 12:22:33 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-06-30 12:22:33 -0400 |
commit | 1fa280a3def73608707921d7978cb91d23c90cad (patch) | |
tree | 165e2870cac4a0eaea2082437bdf180bdc0e5286 /lisp | |
parent | e6597158c01c9bc9044b46831c7445f50c60af81 (diff) | |
download | emacs-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')
-rw-r--r-- | lisp/ChangeLog | 16 | ||||
-rw-r--r-- | 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 <wence@gmx.li> + + * progmodes/js.el (js-mode): Don't stomp on global settings (bug#8933). + 2011-06-30 Alan Mackenzie <acm@muc.de> - * 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 <ken.manheimer@gmail.com> @@ -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 <deniz@dogan.se> - * 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) |