From fa6fd6dc166f6d333ddb9c94271647956f86598d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 10 Apr 2002 21:34:56 +0000 Subject: handle a move sent to an engine that has no game/position intelligently. This can be used for receiving moves, but not recording them. --- chess-engine.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chess-engine.el b/chess-engine.el index 0346229..7c35bd7 100644 --- a/chess-engine.el +++ b/chess-engine.el @@ -178,7 +178,7 @@ (chess-game-set-data game 'active t)) (chess-game-run-hooks game 'orient))))) -(defun chess-engine-create (module &optional response-handler &rest args) +(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")))) @@ -187,7 +187,7 @@ (setq chess-engine-regexp-alist (symbol-value regexp-alist) chess-engine-event-handler handler chess-engine-response-handler - (or response-handler 'chess-engine-default-handler)) + (or user-handler 'chess-engine-default-handler)) (when (processp proc) (unless (memq (process-status proc) '(run open)) (error "Failed to start chess engine process")) -- cgit v1.2.3