message.el (message-mode): Don't use `setq-local' in Gnus code
[gnus] / lisp / message.el
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."