emacs-diffs
[Top][All Lists]
Advanced

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

feature/integration-of-dictionary-el d30618c 11/17: * lisp/net/dictionar


From: Torsten Hilbrich
Subject: feature/integration-of-dictionary-el d30618c 11/17: * lisp/net/dictionary.el (dictionary-tooltip-mode): Use setq-local
Date: Mon, 14 Dec 2020 05:46:38 -0500 (EST)

branch: feature/integration-of-dictionary-el
commit d30618cbc11fb33a0d55c54200eb45f39251189c
Author: Torsten Hilbrich <torsten.hilbrich@gmx.net>
Commit: Torsten Hilbrich <torsten.hilbrich@gmx.net>

    * lisp/net/dictionary.el (dictionary-tooltip-mode): Use setq-local
---
 lisp/net/dictionary.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lisp/net/dictionary.el b/lisp/net/dictionary.el
index 1596e11..afa4d39 100644
--- a/lisp/net/dictionary.el
+++ b/lisp/net/dictionary.el
@@ -1297,11 +1297,9 @@ overwrite that mode for the current buffer.
   (let ((on (if arg
                 (> (prefix-numeric-value arg) 0)
               (not dictionary-tooltip-mode))))
-    (make-local-variable 'dictionary-tooltip-mode)
-    (setq dictionary-tooltip-mode on)
-    (make-local-variable 'track-mouse)
+    (setq-local dictionary-tooltip-mode on)
+    (setq-local track-mouse on)
     (make-local-variable 'dictionary-tooltip-mouse-event)
-    (setq track-mouse on)
     (dictionary-switch-tooltip-mode 1)
     (if on
         (local-set-key [mouse-movement] 'dictionary-tooltip-track-mouse)



reply via email to

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