From 418b1830241ccc5ce4e3574c80d714ec0427fa4c Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 10 Nov 2012 15:43:47 -0800 Subject: 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 --- lisp/cedet/srecode/srt-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp/cedet/srecode') 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]\\)\\(\\\\\\\\\\)*\\);+ *") -- cgit v1.2.3