emacs-diffs
[Top][All Lists]
Advanced

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

feature/integration-of-dictionary-el 4deb861 10/17: * lisp/net/dictionar


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

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

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

diff --git a/lisp/net/dictionary.el b/lisp/net/dictionary.el
index 782282c..1596e11 100644
--- a/lisp/net/dictionary.el
+++ b/lisp/net/dictionary.el
@@ -380,10 +380,8 @@ is utf-8"
   (setq major-mode 'dictionary-mode)
   (setq mode-name "Dictionary")
 
-  (make-local-variable 'dictionary-data-stack)
-  (setq dictionary-data-stack nil)
-  (make-local-variable 'dictionary-position-stack)
-  (setq dictionary-position-stack nil)
+  (setq-local dictionary-data-stack nil)
+  (setq-local dictionary-position-stack nil)
 
   (make-local-variable 'dictionary-current-data)
   (make-local-variable 'dictionary-positions)
@@ -407,10 +405,8 @@ is utf-8"
     (switch-to-buffer-other-window buffer)
     (dictionary-mode)
 
-    (make-local-variable 'dictionary-window-configuration)
-    (make-local-variable 'dictionary-selected-window)
-    (setq dictionary-window-configuration window-configuration)
-    (setq dictionary-selected-window selected-window)
+    (setq-local dictionary-window-configuration window-configuration)
+    (setq-local dictionary-selected-window selected-window)
     (dictionary-check-connection)
     (dictionary-new-buffer)
     (dictionary-store-positions)



reply via email to

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