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

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

[elpa] 02/03: [gnugo int] Fix bug: Use correct color for "Not your turn


From: Thien-Thi Nguyen
Subject: [elpa] 02/03: [gnugo int] Fix bug: Use correct color for "Not your turn yet".
Date: Sun, 27 Apr 2014 10:49:55 +0000

ttn pushed a commit to branch master
in repository elpa.

commit ec263ab714abc4e1f4a938048f8bc8b4b4c3e34c
Author: Thien-Thi Nguyen <address@hidden>
Date:   Sun Apr 27 12:14:36 2014 +0200

    [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)’.
---
 packages/gnugo/gnugo.el |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index ebcf5c6..160cfa0 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/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]