]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't enable cursor-sensor-mode in mhtml-mode
authorTom Tromey <tom@tromey.com>
Sun, 12 Nov 2017 18:56:05 +0000 (11:56 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 12 Nov 2017 18:56:05 +0000 (11:56 -0700)
* lisp/textmodes/mhtml-mode.el (mhtml--last-submode): Update doc
string.
(mhtml-mode): Don't call cursor-sensor-mode.

lisp/textmodes/mhtml-mode.el

index 58541677509b0e4caf636f8f03f7216dd2cd23c6..8df251276b50042088c7b407e2fe445c509bb8e1 100644 (file)
@@ -237,8 +237,8 @@ smallest."
       (cons 'jit-lock-bounds (cons new-beg new-end)))))
 
 (defvar-local mhtml--last-submode nil
-  "Record the last visited submode, so the cursor-sensor function
-can function properly.")
+  "Record the last visited submode.
+This is used by `mhtml--pre-command'.")
 
 (defvar-local mhtml--stashed-crucial-variables nil
   "Alist of stashed values of the crucial variables.")
@@ -359,7 +359,6 @@ can function properly.")
 Code inside a <script> element is indented using the rules from
 `js-mode'; and code inside a <style> element is indented using
 the rules from `css-mode'."
-  (cursor-sensor-mode)
   (setq-local indent-line-function #'mhtml-indent-line)
   (setq-local parse-sexp-lookup-properties t)
   (setq-local syntax-propertize-function #'mhtml-syntax-propertize)