summaryrefslogtreecommitdiff
path: root/chess-scid.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-01 21:03:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-01 21:35:02 -0400
commit715cbc71895a4eef1f4885ef248a02da153c171d (patch)
treec43f1d2ab879e769ae9e92bc42856c58c3055854 /chess-scid.el
parent20c1b3dca2073dd5dc3242dcb74cbedf42c22fae (diff)
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.
Diffstat (limited to 'chess-scid.el')
-rw-r--r--chess-scid.el3
1 files changed, 3 insertions, 0 deletions
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)