branch: externals/gnugo
commit 289e336da0c467f50cb6f554cd28b2fc22e01cb6
Author: Thien-Thi Nguyen <[email protected]>
Commit: Thien-Thi Nguyen <[email protected]>

    [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