mlang pushed a commit to branch externals/chess in repository elpa. commit 266dc1f088cf5ef5cabed39c95e500a2ec0e2509 Author: Mario Lang <ml...@delysid.org> Date: Thu Jun 5 03:23:26 2014 +0200
chess-display-move: Remove unused optional arguments and correct docstring. --- chess-display.el | 8 ++---- chess.info | 57 ++++++++++++++++++++++++++--------------------------- doc/chess.texi | 3 +- 3 files changed, 32 insertions(+), 36 deletions(-) diff --git a/chess-display.el b/chess-display.el index 2936a9d..804f9fc 100644 --- a/chess-display.el +++ b/chess-display.el @@ -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)) diff --git a/chess.info b/chess.info index 78e6402..faebc1d 100644 --- a/chess.info +++ b/chess.info @@ -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 support33381 Node: Modules35234 Node: Chessboard displays41983 Node: Generic display manipulation functions42594 -Node: Plain ASCII diagram displays45519 -Node: ICS1 style ASCII displays46964 -Node: Graphical displays47268 -Node: Engines47422 -Node: Common functions47924 -Node: AI48960 -Node: Crafty49431 -Node: Gnu Chess50162 -Node: Phalanx51028 -Node: Sjeng51135 -Node: Stockfish51238 -Node: Internet Chess Servers51333 -Node: Connecting to a server52239 -Node: Seeking an opponent for a new game52915 -Node: The sought game display53367 -Node: Concept Index54343 -Node: Function and Variable Index54586 -Node: Key Index66910 +Node: Plain ASCII diagram displays45427 +Node: ICS1 style ASCII displays46872 +Node: Graphical displays47176 +Node: Engines47330 +Node: Common functions47832 +Node: AI48868 +Node: Crafty49339 +Node: Gnu Chess50070 +Node: Phalanx50936 +Node: Sjeng51043 +Node: Stockfish51146 +Node: Internet Chess Servers51241 +Node: Connecting to a server52147 +Node: Seeking an opponent for a new game52823 +Node: The sought game display53275 +Node: Concept Index54251 +Node: Function and Variable Index54494 +Node: Key Index66818 End Tag Table diff --git a/doc/chess.texi b/doc/chess.texi index 3d5eb45..1949043 100644 --- a/doc/chess.texi +++ b/doc/chess.texi @@ -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