emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/gnugo 289e336 310/357: [gnugo int] Use ‘setq-local’.


From: Stefan Monnier
Subject: [elpa] externals/gnugo 289e336 310/357: [gnugo int] Use ‘setq-local’.
Date: Sun, 29 Nov 2020 14:51:46 -0500 (EST)

branch: externals/gnugo
commit 289e336da0c467f50cb6f554cd28b2fc22e01cb6
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>

    [gnugo int] Use ‘setq-local’.
    
    * packages/gnugo/gnugo.el (gnugo-board-mode): ...here.
---
 gnugo.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index 097f859..1e04c4d 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -2145,9 +2145,8 @@ In this mode, keys do not self insert."
   (setq font-lock-defaults '(gnugo-font-lock-keywords t)
         truncate-lines t)
   (add-hook 'kill-buffer-hook 'gnugo-cleanup nil t)
-  (set (make-local-variable 'gnugo-state)
-       (gnugo--mkht :size (1- 42)))
-  (set (make-local-variable 'gnugo-btw) nil)
+  (setq-local gnugo-state (gnugo--mkht :size (1- 42)))
+  (setq-local gnugo-btw nil)
   (add-to-list 'minor-mode-alist '(gnugo-btw gnugo-btw))
   (gnugo-put :highlight-last-move-spec
     (gnugo-put :default-highlight-last-move-spec '("(" -1 nil)))



reply via email to

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