From: Torsten Hilbrich Date: Mon, 14 Dec 2020 08:40:33 +0000 (+0100) Subject: * lisp/net/dictionary.el (dictionary-mode): Use setq-local X-Git-Tag: emacs-28.0.90~4726^2~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4deb8618e4;p=emacs.git * lisp/net/dictionary.el (dictionary-mode): Use setq-local --- diff --git a/lisp/net/dictionary.el b/lisp/net/dictionary.el index 782282c27cd..1596e11ce47 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)