From: Austin Clements Date: Sun, 29 Nov 2009 22:22:07 +0000 (-0800) Subject: Make comment-start/-end changes buffer-local instead of global. X-Git-Tag: weekly.2009-12-07~119 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6e6125ffa413fea7e55e159e4fd131ec054de0c7;p=gostls13.git Make comment-start/-end changes buffer-local instead of global. Fixes #290. R=rsc https://golang.org/cl/160070 --- diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index 50a1c5c154..88198e3c4d 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -462,8 +462,8 @@ functions, and some types. It also provides indentation that is (add-hook 'after-change-functions #'go-mode-delayed-electric-hook nil t) ;; Comments - (setq comment-start "// " - comment-end "") + (set (make-local-variable 'comment-start) "// ") + (set (make-local-variable 'comment-end) "") ;; Go style (setq indent-tabs-mode t))