diff options
| author | Tom Tromey | 2017-10-29 11:50:16 -0600 |
|---|---|---|
| committer | Tom Tromey | 2017-10-29 11:50:16 -0600 |
| commit | 557e252aa22919e7ae89bb0a364ca22250b7121e (patch) | |
| tree | ceee540d9fac67c3bacad797b2e6207e99ca2b3d | |
| parent | 336cd0a11ab39e40a6623d2f1a0ec234ea9d29b7 (diff) | |
| download | emacs-557e252aa22919e7ae89bb0a364ca22250b7121e.tar.gz emacs-557e252aa22919e7ae89bb0a364ca22250b7121e.zip | |
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".
| -rw-r--r-- | lisp/textmodes/mhtml-mode.el | 4 |
1 files 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(); | |||
| 75 | 75 | ||
| 76 | (defconst mhtml--crucial-variable-prefix | 76 | (defconst mhtml--crucial-variable-prefix |
| 77 | (regexp-opt '("comment-" "uncomment-" "electric-indent-" | 77 | (regexp-opt '("comment-" "uncomment-" "electric-indent-" |
| 78 | "smie-" "forward-sexp-function")) | 78 | "smie-" "forward-sexp-function" "completion-" "major-mode")) |
| 79 | "Regexp matching the prefix of \"crucial\" buffer-locals we want to capture.") | 79 | "Regexp matching the prefix of \"crucial\" buffer-locals we want to capture.") |
| 80 | 80 | ||
| 81 | (defconst mhtml--variable-prefix | 81 | (defconst mhtml--variable-prefix |
| 82 | (regexp-opt '("font-lock-" "indent-line-function" "major-mode")) | 82 | (regexp-opt '("font-lock-" "indent-line-function")) |
| 83 | "Regexp matching the prefix of buffer-locals we want to capture.") | 83 | "Regexp matching the prefix of buffer-locals we want to capture.") |
| 84 | 84 | ||
| 85 | (defun mhtml--construct-submode (mode &rest args) | 85 | (defun mhtml--construct-submode (mode &rest args) |