From 1b870e3ce5d600149276535949483f6213ab8625 Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Fri, 23 Jan 2004 16:54:50 +0000 Subject: use apply in chess-database-query --- chess-database.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/chess-database.el b/chess-database.el index c9ad6dc..6db8ba7 100644 --- a/chess-database.el +++ b/chess-database.el @@ -70,7 +70,12 @@ (defun chess-database-count (database) (chess-database-command database 'count)) +(defun chess-database-read-only-p (database) + "Return non-nil if DATABASE is read only." + (chess-database-command database 'read-only-p)) + (defun chess-database-read (database index) + "Return from DATABASE the chess game object at INDEX." (chess-database-command database 'read index)) (defun chess-database-write (database game) @@ -80,7 +85,11 @@ (chess-database-command database 'replace game index)) (defun chess-database-query (database &rest terms) - (chess-database-command database 'query terms)) + "Run a query on DATABASE. +TERMS is partly dependent on the chess-database module in use. +chess-scid: + tree-search GAME: Perform a tree search on the last position of GAME." + (apply 'chess-database-command database 'query terms)) (provide 'chess-database) -- cgit v1.2.3