]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/dictionary.el (dictionary-mode): Use setq-local
authorTorsten Hilbrich <torsten.hilbrich@gmx.net>
Mon, 14 Dec 2020 08:40:33 +0000 (09:40 +0100)
committerTorsten Hilbrich <torsten.hilbrich@gmx.net>
Mon, 14 Dec 2020 10:45:24 +0000 (11:45 +0100)
lisp/net/dictionary.el

index 782282c27cd14199b225a5907eb12dbc31b64f35..1596e11ce47aeef670c40d4a0d614f5aaa7f7b6f 100644 (file)
@@ -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)