diff options
| author | John Wiegley <johnw@newartisans.com> | 2002-04-08 11:38:06 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2002-04-08 11:38:06 +0000 |
| commit | e32c98000f00d9fe688c50be6e507218be1f570f (patch) | |
| tree | 3843e0b1ccf64a9b2be2c51a7c99bb001c354cee /chess-engine.el | |
| parent | 2500b8cd4c971b7d884683390776ca4756278169 (diff) | |
*** no comment ***
Diffstat (limited to 'chess-engine.el')
| -rw-r--r-- | chess-engine.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chess-engine.el b/chess-engine.el index 4c6c259..125bccb 100644 --- a/chess-engine.el +++ b/chess-engine.el @@ -58,7 +58,7 @@ ((eq event 'move) (chess-engine-do-move (car args))))) -(defun chess-engine-create (module &optional user-handler) +(defun chess-engine-create (module &optional user-handler &rest args) (let ((regexp-alist (intern-soft (concat (symbol-name module) "-regexp-alist"))) (handler (intern-soft (concat (symbol-name module) "-handler")))) @@ -67,7 +67,7 @@ chess-engine-event-handler handler chess-engine-response-handler (or 'chess-engine-default-handler user-handler)) - (let ((proc (funcall handler 'initialize))) + (let ((proc (apply handler 'initialize args))) (when (processp proc) (unless (memq (process-status proc) '(run open)) (error "Failed to start chess engine process")) |
