From 715cbc71895a4eef1f4885ef248a02da153c171d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 1 Sep 2008 21:03:25 -0400 Subject: Erase the buffer before asking scid for a PGN position. What happens during running of the validation tests is that he buffer fills up before we can evaluate all the games. --- chess-scid.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chess-scid.el') diff --git a/chess-scid.el b/chess-scid.el index 37e5c42..b2e1db4 100644 --- a/chess-scid.el +++ b/chess-scid.el @@ -67,6 +67,9 @@ (string-to-number (chess-scid-get-result "sc_base numGames"))) ((eq event 'read) + ;; clear the buffer, since we don't need old data here any more, and it + ;; can accumulate without bound during running of the validation tests + (erase-buffer) (process-send-string chess-scid-process (format "sc_game load %d\n" (car args))) (accept-process-output chess-scid-process) -- cgit v1.2.3