[Top][All Lists]

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

[elpa] externals/gnugo 1367651 173/357: [gnugo int] Make ‘gnugo-gate’ s

From: Stefan Monnier
Subject: [elpa] externals/gnugo 1367651 173/357: [gnugo int] Make ‘gnugo-gate’ slightly faster.
Date: Sun, 29 Nov 2020 14:51:15 -0500 (EST)

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

    [gnugo int] Make ‘gnugo-gate’ slightly faster.
    * packages/gnugo/gnugo.el (gnugo-gate):
    Check IN-PROGRESS-P before :game-over.
 gnugo.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnugo.el b/gnugo.el
index 4f00a34..3cc26d6 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -337,7 +337,7 @@ Handle the big, slow-to-render, and/or uninteresting ones 
   (when (gnugo-get :waitingp)
     (user-error "Not your turn yet -- please wait for \"\(%s to play\)\""
                 (gnugo-get :user-color)))
-  (when (and (gnugo-get :game-over) in-progress-p)
+  (when (and in-progress-p (gnugo-get :game-over))
     (user-error "Sorry, game over")))
 (defun gnugo-sentinel (proc string)

reply via email to

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