summaryrefslogtreecommitdiff
path: root/chess-engine.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-engine.el')
-rw-r--r--chess-engine.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/chess-engine.el b/chess-engine.el
index 9f54e2f..ab2ac63 100644
--- a/chess-engine.el
+++ b/chess-engine.el
@@ -306,7 +306,8 @@ Optionally supply a new RESPONSE-HANDLER."
(when (and proc (processp proc))
(unless (memq (process-status proc) '(run open listen))
(chess-error 'failed-start))
- (unless (process-filter proc)
+ (if (or (not (process-filter proc))
+ (eq (process-filter proc) 'internal-default-process-filter))
(set-process-filter proc 'chess-engine-filter)))
(setq chess-engine-current-marker (point-marker))
(chess-game-set-data game 'engine (current-buffer)))))))