diff options
| author | Mario Lang <mlang@delysid.org> | 2004-01-23 16:54:50 +0000 |
|---|---|---|
| committer | Mario Lang <mlang@delysid.org> | 2004-01-23 16:54:50 +0000 |
| commit | 1b870e3ce5d600149276535949483f6213ab8625 (patch) | |
| tree | fc1cedb5500862ce4061303005d0c7fd50b7b43b | |
| parent | 1a08d7e244a35a56099ac1f6b6fa46c32172aa9c (diff) | |
use apply in chess-database-query
| -rw-r--r-- | chess-database.el | 11 |
1 files changed, 10 insertions, 1 deletions
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) |
