message.el (message-mode): Don't use `setq-local' in Gnus code
authorJoão Távora <joaotavora@gmail.com>
Sun, 12 Apr 2015 22:43:57 +0000 (22:43 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sun, 12 Apr 2015 22:43:57 +0000 (22:43 +0000)
This might break upstream builds with older Emacsen

lisp/ChangeLog
lisp/message.el

index 651de2f..8fb3ba7 100644 (file)
@@ -1,3 +1,8 @@
+2015-04-12  João Távora  <joaotavora@gmail.com>
+
+       * message.el (message-mode):
+       Use `set' and `make-local-variable' instead of `setq-local'.
+
 2015-04-12  Johan Bockgård  <bojohan@gnu.org>
 
        * gnus-sum.el (gnus-summary-refer-thread):
index 5b44866..3d10eae 100644 (file)
@@ -3136,8 +3136,8 @@ M-RET    `message-newline-and-reformat' (break the line and reformat)."
   ;; `electric-pair-mode', and C-M-* navigation by syntactically
   ;; excluding citations and other artifacts.
   ;;
-  (setq-local syntax-propertize-function 'message--syntax-propertize)
-  (setq-local parse-sexp-ignore-comments t))
+  (set (make-local-variable 'syntax-propertize-function) 'message--syntax-propertize)
+  (set (make-local-variable 'parse-sexp-ignore-comments) t))
 
 (defun message-setup-fill-variables ()
   "Setup message fill variables."