From 557e252aa22919e7ae89bb0a364ca22250b7121e Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 29 Oct 2017 11:50:16 -0600 Subject: [PATCH] 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". --- lisp/textmodes/mhtml-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2