emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 6aa0a26: Don't enable cursor-sensor-mode in mhtml


From: Tom Tromey
Subject: [Emacs-diffs] emacs-26 6aa0a26: Don't enable cursor-sensor-mode in mhtml-mode
Date: Sun, 12 Nov 2017 13:56:32 -0500 (EST)

branch: emacs-26
commit 6aa0a26b46240d79eddd7e0d275454e235a60b84
Author: Tom Tromey <address@hidden>
Commit: Tom Tromey <address@hidden>

    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.
---
 lisp/textmodes/mhtml-mode.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/textmodes/mhtml-mode.el b/lisp/textmodes/mhtml-mode.el
index 5854167..8df2512 100644
--- a/lisp/textmodes/mhtml-mode.el
+++ b/lisp/textmodes/mhtml-mode.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]