]> code.delx.au - gnu-emacs-elpa/commitdiff
Make comment-* vars buffer-local
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 22 Mar 2011 15:56:36 +0000 (18:56 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 22 Mar 2011 15:56:36 +0000 (18:56 +0300)
http://code.google.com/p/js2-mode/issues/detail?id=86

js2-mode.el

index be8cf5f80e11a242065df9e7e8bc95b6b7ef7f40..9d12060f0dc252d6ac850f5d8c81a39b8cec79cc 100644 (file)
@@ -10355,6 +10355,9 @@ If so, we don't ever want to use bounce-indent."
   (kill-all-local-variables)
   (set-syntax-table js2-mode-syntax-table)
   (use-local-map js2-mode-map)
+  (make-local-variable 'comment-start)
+  (make-local-variable 'comment-end)
+  (make-local-variable 'comment-start-skip)
   (setq major-mode 'js2-mode
         mode-name "JavaScript-IDE"
         comment-start "//"  ; used by comment-region; don't change it