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

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

[elpa] externals/gnugo 46f49e3 246/357: [gnugo int] Use ‘gnugo-current-


From: Stefan Monnier
Subject: [elpa] externals/gnugo 46f49e3 246/357: [gnugo int] Use ‘gnugo-current-player’ more.
Date: Sun, 29 Nov 2020 14:51:31 -0500 (EST)

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

    [gnugo int] Use ‘gnugo-current-player’ more.
    
    * packages/gnugo/gnugo.el (gnugo-refresh):
    ...here, obsoleting two local vars, as well.
---
 gnugo.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index 32f1147..5f14f7d 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1425,9 +1425,7 @@ be slow.  (This should normally be unnecessary; specify 
it only if the display
 seems corrupted.)  NOCACHE is silently ignored when GNU Go is thinking about
 its move."
   (interactive "P")
-  (let* ((last-mover (gnugo-get :last-mover))
-         (other (gnugo-other last-mover))
-         (move (gnugo-move-history 'car))
+  (let* ((move (gnugo-move-history 'car))
          (game-over (gnugo-get :game-over))
          (inhibit-read-only t)
          window last)
@@ -1462,7 +1460,7 @@ its move."
                                          ""))
                              (format "%s(%s to play)"
                                      (if move (concat move " ") "")
-                                     other))))
+                                     (gnugo-current-player)))))
     ;; pall of death
     (when game-over
       (let ((live (cdr (assq 'live game-over)))



reply via email to

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