From: Glenn Morris Date: Sat, 10 Nov 2012 23:43:47 +0000 (-0800) Subject: Add missing make-local-variable calls in srt-mode.el X-Git-Tag: emacs-24.2.90~119 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=418b1830241ccc5ce4e3574c80d714ec0427fa4c;p=emacs.git Add missing make-local-variable calls in srt-mode.el * lisp/cedet/srecode/srt-mode.el (srecode-template-mode): Don't change global values of comment-start, comment-end. Fixes: debbugs:12781 --- diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index 6f2669e9fee..55fce80e18b 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog @@ -1,3 +1,8 @@ +2012-11-10 Glenn Morris + + * srecode/srt-mode.el (srecode-template-mode): + Don't change global values of comment-start, comment-end. (Bug#12781) + 2012-10-25 David Engster * semantic/analyze.el (semantic-analyze-dereference-alias): New diff --git a/lisp/cedet/srecode/srt-mode.el b/lisp/cedet/srecode/srt-mode.el index 12fc08b90e4..298c8949435 100644 --- a/lisp/cedet/srecode/srt-mode.el +++ b/lisp/cedet/srecode/srt-mode.el @@ -189,8 +189,8 @@ we can tell font lock about them.") ;;;###autoload (define-derived-mode srecode-template-mode fundamental-mode "SRecorder" "Major-mode for writing SRecode macros." - (setq comment-start ";;" - comment-end "") + (set (make-local-variable 'comment-start) ";;") + (set (make-local-variable 'comment-end) "") (set (make-local-variable 'parse-sexp-ignore-comments) t) (set (make-local-variable 'comment-start-skip) "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *")