]> git.eshelyaron.com Git - emacs.git/commitdiff
Remember more variables in mhtml-mode
authorTom Tromey <tom@tromey.com>
Sun, 29 Oct 2017 17:50:16 +0000 (11:50 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 29 Oct 2017 17:50:16 +0000 (11:50 -0600)
* lisp/textmodes/mhtml-mode.el (mhtml--crucial-variable-prefix): Add
"completion-" and "major-mode".
(mhtml--variable-prefix): Remove "major-mode".

lisp/textmodes/mhtml-mode.el

index b6cd1572fb711a689b5cf8bd959d05ea69f00386..05d5e52225d9f4ceecaa3653da411c6603f41889 100644 (file)
@@ -75,11 +75,11 @@ code();
 
 (defconst mhtml--crucial-variable-prefix
   (regexp-opt '("comment-" "uncomment-" "electric-indent-"
-                "smie-" "forward-sexp-function"))
+                "smie-" "forward-sexp-function" "completion-" "major-mode"))
   "Regexp matching the prefix of \"crucial\" buffer-locals we want to capture.")
 
 (defconst mhtml--variable-prefix
-  (regexp-opt '("font-lock-" "indent-line-function" "major-mode"))
+  (regexp-opt '("font-lock-" "indent-line-function"))
   "Regexp matching the prefix of buffer-locals we want to capture.")
 
 (defun mhtml--construct-submode (mode &rest args)