mlang pushed a commit to branch externals/chess in repository elpa. commit 6a27f6184f1766c2d613d7b7852187c8d665bf75 Author: Mario Lang <ml...@delysid.org> Date: Tue Jun 17 18:13:41 2014 +0200
* chess-display.el (chess-display-highlight-legal): Rename misleading argument pos to index. --- chess-display.el | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chess-display.el b/chess-display.el index 003511e..439bc2d 100644 --- a/chess-display.el +++ b/chess-display.el @@ -438,10 +438,10 @@ that is supported by most displays, and is the default mode." (setq mode arg) (funcall chess-display-event-handler 'highlight arg mode)))))) -(defun chess-display-highlight-legal (display pos) - "Highlight all legal move targets from POS." +(defun chess-display-highlight-legal (display index) + "Highlight all legal move targets from INDEX." (chess-with-current-buffer display - (dolist (ply (chess-legal-plies (chess-display-position nil) :index pos)) + (dolist (ply (chess-legal-plies (chess-display-position nil) :index index)) (chess-display-highlight nil "pale green" (chess-ply-target ply)))))