]> code.delx.au - gnu-emacs-elpa/commitdiff
Erase the buffer before asking scid for a PGN position. What happens during
authorJohn Wiegley <johnw@newartisans.com>
Tue, 2 Sep 2008 01:03:25 +0000 (21:03 -0400)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 2 Sep 2008 01:35:02 +0000 (21:35 -0400)
running of the validation tests is that he buffer fills up before we can
evaluate all the games.

chess-scid.el

index 37e5c42f9e8fa5eab84e692e9f9bab82b7f0466e..b2e1db48d68b1c262542e3cbdddaa13467e06088 100644 (file)
@@ -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)