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

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

[elpa] externals/gnugo 764251b 259/357: [gnugo int] Fix bug: Use correct


From: Stefan Monnier
Subject: [elpa] externals/gnugo 764251b 259/357: [gnugo int] Fix bug: Use correct color for "Not your turn yet".
Date: Sun, 29 Nov 2020 14:51:34 -0500 (EST)

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

    [gnugo int] Fix bug: Use correct color for "Not your turn yet".
    
    Regression introduced 2014-04-22, "Use ‘destructuring-bind’
    more", in the player-agnostic side-effect.  :-/
    
    * packages/gnugo/gnugo.el (gnugo-gate):
    For "Not your turn yet", use ‘(gnugo-other color)’.
---
 gnugo.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index ebcf5c6..160cfa0 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -371,10 +371,12 @@ Handle the big, slow-to-render, and/or uninteresting ones 
specially."
   (destructuring-bind (&optional color . suggestion)
       (gnugo-get :waiting)
     (when color
-      (gnugo--ERR-wait
-       color (if suggestion
-                 "Still thinking"
-               "Not your turn yet"))))
+      (apply 'gnugo--ERR-wait
+             (if suggestion
+                 (list color
+                       "Still thinking")
+               (list (gnugo-other color)
+                     "Not your turn yet")))))
   (gnugo--gate-game-over in-progress-p))
 
 (defun gnugo-sentinel (proc string)



reply via email to

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