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

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

[elpa] 01/03: [gnugo int] Make ‘gnug o-gate’ slightly faster.


From: Thien-Thi Nguyen
Subject: [elpa] 01/03: [gnugo int] Make ‘gnug o-gate’ slightly faster.
Date: Sun, 13 Apr 2014 09:14:59 +0000

ttn pushed a commit to branch master
in repository elpa.

commit ad7913f03c1edf1030823a95b8dff1a9371f0fdf
Author: Thien-Thi Nguyen <address@hidden>
Date:   Sun Apr 13 10:36:39 2014 +0200

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

diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index 4f00a34..3cc26d6 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/gnugo.el
@@ -337,7 +337,7 @@ Handle the big, slow-to-render, and/or uninteresting ones 
specially."
   (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]