From eafa7a587d12f503a16d6538f88029afe011051c Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Mon, 1 Mar 2004 16:24:45 +0000 Subject: (chess-legal-plies): Add :candidates keyword to avoid calls to chess-search-position if the caller already knows the piece indices --- chess-ply.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chess-ply.el') diff --git a/chess-ply.el b/chess-ply.el index 3ba0a40..826151d 100644 --- a/chess-ply.el +++ b/chess-ply.el @@ -305,6 +305,7 @@ KEYWORDS allowed are: :file [can only be used if :piece is present] :index :target + :candidates These will constrain the plies generated to those matching the above criteria. @@ -344,6 +345,8 @@ position object passed in." ;; more focused search (dolist (candidate (cond + ((cadr (memq :candidates keywords)) + (cadr (memq :candidates keywords))) ((setq pos (cadr (memq :index keywords))) (list pos)) ((setq file (cadr (memq :file keywords))) -- cgit v1.2.3