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

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

[elpa] externals/gnugo a949e26 071/357: [gnugo int] Rename arg from SWIT


From: Stefan Monnier
Subject: [elpa] externals/gnugo a949e26 071/357: [gnugo int] Rename arg from SWITCH to ME-NEXT.
Date: Sun, 29 Nov 2020 14:50:51 -0500 (EST)

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

    [gnugo int] Rename arg from SWITCH to ME-NEXT.
    
    * packages/gnugo/gnugo.el (gnugo-undo-one-move): ...here.
---
 gnugo.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnugo.el b/gnugo.el
index 3cfdabf..ded615e 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -1415,10 +1415,10 @@ turn to play.  Optional second arg NOALT non-nil 
inhibits this."
       (when (and ulastp (not noalt))
         (gnugo-get-move (gnugo-get :gnugo-color))))))
 
-(defun gnugo-undo-one-move (&optional switch)
+(defun gnugo-undo-one-move (&optional me-next)
   "Undo exactly one move (perhaps GNU Go's, perhaps yours).
 Do not schedule a move by GNU Go even if it is GNU Go's turn to play.
-Prefix arg SWITCH means to arrange for you to play
+Prefix arg ME-NEXT means to arrange for you to play
 the color of the next move (and GNU Go the opposite).
 This is useful after loading an SGF file whose last
 move was done by the color you prefer to play:
@@ -1429,7 +1429,7 @@ See also `gnugo-undo-two-moves'."
   (interactive "P")
   (gnugo-gate)
   (gnugo-magic-undo 1 t)
-  (when switch
+  (when me-next
     (let* ((wait (gnugo-get :last-mover))
            (play (gnugo-other wait)))
       (gnugo--who-is-who wait play (string= play (gnugo-get :user-color)))



reply via email to

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