diff options
author | Torsten Hilbrich <torsten.hilbrich@gmx.net> | 2020-12-14 09:40:33 +0100 |
---|---|---|
committer | Torsten Hilbrich <torsten.hilbrich@gmx.net> | 2020-12-14 11:45:24 +0100 |
commit | d30618cbc11fb33a0d55c54200eb45f39251189c (patch) | |
tree | c5a6146fb72df56c31beb7324a81dc154a1bbcd6 /lisp | |
parent | 4deb8618e4ab568c01da7c839dff4f29710a3298 (diff) | |
download | emacs-d30618cbc11fb33a0d55c54200eb45f39251189c.tar.gz emacs-d30618cbc11fb33a0d55c54200eb45f39251189c.tar.bz2 emacs-d30618cbc11fb33a0d55c54200eb45f39251189c.zip |
* lisp/net/dictionary.el (dictionary-tooltip-mode): Use setq-local
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/net/dictionary.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/net/dictionary.el b/lisp/net/dictionary.el index 1596e11ce47..afa4d393c0d 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) |