]> code.delx.au - gnu-emacs-elpa/commitdiff
chess-display-move: Remove unused optional arguments and correct docstring.
authorMario Lang <mlang@delysid.org>
Thu, 5 Jun 2014 01:23:26 +0000 (03:23 +0200)
committerMario Lang <mlang@delysid.org>
Thu, 5 Jun 2014 01:23:26 +0000 (03:23 +0200)
chess-display.el
chess.info
doc/chess.texi

index 2936a9d1c8ce3dd0d644e760847c263ae537c24d..804f9fc635a73f9bd52479939140b76c09afb757 100644 (file)
@@ -393,10 +393,9 @@ Basically, it means we are playing, not editing or reviewing."
        (not (chess-game-over-p chess-module-game))
        (not chess-display-edit-mode)))
 
-(defun chess-display-move (display ply &optional _prev-pos _pos)
+(defun chess-display-move (display ply)
   "Move a piece on DISPLAY, by applying the given PLY.
-The position of PLY must match the currently displayed position.
-If only START is given, it must be in algebraic move notation."
+The position of PLY must match the currently displayed position."
   (chess-with-current-buffer display
     (if (and (chess-display-active-p)
             ;; `active' means we're playing against an engine
@@ -1210,8 +1209,7 @@ Clicking once on a piece selects it; then click on the target location."
                                                              coord))
                            (throw 'message (chess-string 'move-not-legal)))
                          (condition-case err
-                             (chess-display-move nil ply
-                                                 (car last-sel) (point))
+                             (chess-display-move nil ply)
                            (error
                             (throw 'message (error-message-string err)))))))
                    (setq chess-display-last-selected nil))
index 78e6402b5cb0798316066230bb43925e3953f44a..faebc1d1af4909fd2ac9b3d3abcb321d69354e42 100644 (file)
@@ -1178,10 +1178,9 @@ File: chess.info,  Node: Generic display manipulation functions,  Next: Plain AS
  -- Function: chess-display-invert
      Invert the perspective of the current chess board.
 
- -- Function: chess-display-move display ply &optional prev-pos pos
+ -- Function: chess-display-move display ply
      Move a piece on DISPLAY, by applying the given PLY.  The position
-     of PLY must match the currently displayed position.  If only START
-     is given, it must be in algebraic move notation.
+     of PLY must match the currently displayed position.
 
  -- Function: chess-display-perspective display
      Return the current perspective of DISPLAY.
@@ -1530,21 +1529,21 @@ Function and Variable Index
 * chess-display-move:                    Generic display manipulation functions.
                                                                (line 28)
 * chess-display-perspective:             Generic display manipulation functions.
-                                                               (line 33)
+                                                               (line 32)
 * chess-display-position:                Generic display manipulation functions.
-                                                               (line 36)
+                                                               (line 35)
 * chess-display-quit:                    Generic display manipulation functions.
-                                                               (line 39)
+                                                               (line 38)
 * chess-display-set-game:                Generic display manipulation functions.
-                                                               (line 42)
+                                                               (line 41)
 * chess-display-set-perspective:         Generic display manipulation functions.
-                                                               (line 48)
+                                                               (line 47)
 * chess-display-set-position:            Generic display manipulation functions.
-                                                               (line 51)
+                                                               (line 50)
 * chess-display-set-variation:           Generic display manipulation functions.
-                                                               (line 55)
+                                                               (line 54)
 * chess-display-update:                  Generic display manipulation functions.
-                                                               (line 63)
+                                                               (line 62)
 * chess-engine-command:                  Common functions.     (line 18)
 * chess-engine-create:                   Common functions.     (line  6)
 * chess-engine-position:                 Common functions.     (line 15)
@@ -1719,23 +1718,23 @@ Node: Polyglot opening book format support\7f33381
 Node: Modules\7f35234
 Node: Chessboard displays\7f41983
 Node: Generic display manipulation functions\7f42594
-Node: Plain ASCII diagram displays\7f45519
-Node: ICS1 style ASCII displays\7f46964
-Node: Graphical displays\7f47268
-Node: Engines\7f47422
-Node: Common functions\7f47924
-Node: AI\7f48960
-Node: Crafty\7f49431
-Node: Gnu Chess\7f50162
-Node: Phalanx\7f51028
-Node: Sjeng\7f51135
-Node: Stockfish\7f51238
-Node: Internet Chess Servers\7f51333
-Node: Connecting to a server\7f52239
-Node: Seeking an opponent for a new game\7f52915
-Node: The sought game display\7f53367
-Node: Concept Index\7f54343
-Node: Function and Variable Index\7f54586
-Node: Key Index\7f66910
+Node: Plain ASCII diagram displays\7f45427
+Node: ICS1 style ASCII displays\7f46872
+Node: Graphical displays\7f47176
+Node: Engines\7f47330
+Node: Common functions\7f47832
+Node: AI\7f48868
+Node: Crafty\7f49339
+Node: Gnu Chess\7f50070
+Node: Phalanx\7f50936
+Node: Sjeng\7f51043
+Node: Stockfish\7f51146
+Node: Internet Chess Servers\7f51241
+Node: Connecting to a server\7f52147
+Node: Seeking an opponent for a new game\7f52823
+Node: The sought game display\7f53275
+Node: Concept Index\7f54251
+Node: Function and Variable Index\7f54494
+Node: Key Index\7f66818
 \1f
 End Tag Table
index 3d5eb451997303f2bcf6dff824698d1ee7717811..1949043a20989c0b1e661c411c7259d79b04635c 100644 (file)
@@ -1385,10 +1385,9 @@ Invert the perspective of the current chess board.
 
 @c lispfun chess-display-move
 
-@defun chess-display-move display ply &optional prev-pos pos
+@defun chess-display-move display ply
 Move a piece on @var{display}, by applying the given @var{ply}.
 The position of @var{ply} must match the currently displayed position.
-If only @var{start} is given, it must be in algebraic move notation.
 @end defun
 
 @c lispfun chess-display-move-backward