From: Tom Tromey Date: Sun, 29 Oct 2017 17:50:16 +0000 (-0600) Subject: Remember more variables in mhtml-mode X-Git-Tag: emacs-26.0.91~433 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=557e252aa22919e7ae89bb0a364ca22250b7121e;p=emacs.git Remember more variables in mhtml-mode * lisp/textmodes/mhtml-mode.el (mhtml--crucial-variable-prefix): Add "completion-" and "major-mode". (mhtml--variable-prefix): Remove "major-mode". --- diff --git a/lisp/textmodes/mhtml-mode.el b/lisp/textmodes/mhtml-mode.el index b6cd1572fb7..05d5e52225d 100644 --- a/lisp/textmodes/mhtml-mode.el +++ b/lisp/textmodes/mhtml-mode.el @@ -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)