diff options
| author | Tom Tromey | 2017-11-12 11:56:05 -0700 |
|---|---|---|
| committer | Tom Tromey | 2017-11-12 11:56:05 -0700 |
| commit | 6aa0a26b46240d79eddd7e0d275454e235a60b84 (patch) | |
| tree | 100f16f3dd413894d43b23da04f9df29b13d1c9b | |
| parent | 2b8ef8dddf235d3a94013f3ab70c9b697b6471e1 (diff) | |
| download | emacs-6aa0a26b46240d79eddd7e0d275454e235a60b84.tar.gz emacs-6aa0a26b46240d79eddd7e0d275454e235a60b84.zip | |
Don't enable cursor-sensor-mode in mhtml-mode
* lisp/textmodes/mhtml-mode.el (mhtml--last-submode): Update doc
string.
(mhtml-mode): Don't call cursor-sensor-mode.
| -rw-r--r-- | lisp/textmodes/mhtml-mode.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/textmodes/mhtml-mode.el b/lisp/textmodes/mhtml-mode.el index 58541677509..8df251276b5 100644 --- a/lisp/textmodes/mhtml-mode.el +++ b/lisp/textmodes/mhtml-mode.el | |||
| @@ -237,8 +237,8 @@ smallest." | |||
| 237 | (cons 'jit-lock-bounds (cons new-beg new-end))))) | 237 | (cons 'jit-lock-bounds (cons new-beg new-end))))) |
| 238 | 238 | ||
| 239 | (defvar-local mhtml--last-submode nil | 239 | (defvar-local mhtml--last-submode nil |
| 240 | "Record the last visited submode, so the cursor-sensor function | 240 | "Record the last visited submode. |
| 241 | can function properly.") | 241 | This is used by `mhtml--pre-command'.") |
| 242 | 242 | ||
| 243 | (defvar-local mhtml--stashed-crucial-variables nil | 243 | (defvar-local mhtml--stashed-crucial-variables nil |
| 244 | "Alist of stashed values of the crucial variables.") | 244 | "Alist of stashed values of the crucial variables.") |
| @@ -359,7 +359,6 @@ can function properly.") | |||
| 359 | Code inside a <script> element is indented using the rules from | 359 | Code inside a <script> element is indented using the rules from |
| 360 | `js-mode'; and code inside a <style> element is indented using | 360 | `js-mode'; and code inside a <style> element is indented using |
| 361 | the rules from `css-mode'." | 361 | the rules from `css-mode'." |
| 362 | (cursor-sensor-mode) | ||
| 363 | (setq-local indent-line-function #'mhtml-indent-line) | 362 | (setq-local indent-line-function #'mhtml-indent-line) |
| 364 | (setq-local parse-sexp-lookup-properties t) | 363 | (setq-local parse-sexp-lookup-properties t) |
| 365 | (setq-local syntax-propertize-function #'mhtml-syntax-propertize) | 364 | (setq-local syntax-propertize-function #'mhtml-syntax-propertize) |