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

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

[elpa] externals/gnugo 566623c 121/357: [gnugo int] Invert ‘if’ CONDITI


From: Stefan Monnier
Subject: [elpa] externals/gnugo 566623c 121/357: [gnugo int] Invert ‘if’ CONDITION and THEN/ELSE clauses.
Date: Sun, 29 Nov 2020 14:51:03 -0500 (EST)

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

    [gnugo int] Invert ‘if’ CONDITION and THEN/ELSE clauses.
    
    * packages/gnugo/gnugo.el (gnugo/sgf-create):
    ...here, to place the "multiple" case as the ELSE.
---
 gnugo.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index 83f503c..e6769c0 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -2512,12 +2512,12 @@ A collection is a list of gametrees."
                    (push (setq node (NODE))
                          ls))
                  (prog1
-                     (if (seek ?\()
-                         ;; multiple
-                         (loop while (seek ?\()
-                               append (TREE ls))
-                       ;; singular
-                       (list ls))
+                     (if (not (seek ?\())
+                         ;; singular
+                         (list ls)
+                       ;; multiple
+                       (loop while (seek ?\()
+                             append (TREE ls)))
                    (seek-into ?\))))))
       (with-temp-buffer
         (if (not data-p)



reply via email to

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