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

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

[elpa] 01/02: [gnugo int] Fix syntax error in ‘loop’ destructuring.


From: Thien-Thi Nguyen
Subject: [elpa] 01/02: [gnugo int] Fix syntax error in ‘loop’ destructuring.
Date: Sat, 12 Apr 2014 08:20:14 +0000

ttn pushed a commit to branch master
in repository elpa.

commit 0b2f8423aab0eff2b272019f544db210b716f229
Author: Thien-Thi Nguyen <address@hidden>
Date:   Fri Apr 11 12:00:26 2014 +0200

    [gnugo int] Fix syntax error in ‘loop’ destructuring.
    
    The destructuring is similar to but not identical to the
    facility provided by ‘defmacro’ (info "(cl) For Clauses").
    This was caught, btw, while trying to byte-compile w/
    ‘-*- lexical-binding: t -*-’ on the first line.
    
    * packages/gnugo/gnugo.el (gnugo-board-mode):
    Omit ‘&optional’ from ‘for’ clause variable destructuring form.
---
 packages/gnugo/gnugo.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index c225fc7..ab753f2 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/gnugo.el
@@ -2209,7 +2209,7 @@ In this mode, keys do not self insert.
                            'gnugo-option-history))
         proc
         board-size user-color handicap komi minus-l infile)
-    (loop for (var default opt &optional rx)
+    (loop for (var default opt rx)
           in '((board-size      19 "--boardsize")
                (user-color "black" "--color" "\\(black\\|white\\)")
                (handicap         0 "--handicap")
@@ -2254,7 +2254,7 @@ In this mode, keys do not self insert.
       (gnugo-put :monkey (vector (aref (gnugo--tree-ends tree) 0) 0)))
     (gnugo--SZ! board-size)
     (loop with gb = (gnugo--blackp (gnugo-other user-color))
-          for (property value &optional mogrifyp) in
+          for (property value mogrifyp) in
           `((:SZ ,board-size)
             (:DT ,(format-time-string "%Y-%m-%d"))
             (:RU ,(if (string-match "--chinese-rules" args)



reply via email to

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