diff options
| author | John Wiegley <johnw@newartisans.com> | 2008-09-01 21:03:25 -0400 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2008-09-01 21:35:02 -0400 |
| commit | 715cbc71895a4eef1f4885ef248a02da153c171d (patch) | |
| tree | c43f1d2ab879e769ae9e92bc42856c58c3055854 /chess-scid.el | |
| parent | 20c1b3dca2073dd5dc3242dcb74cbedf42c22fae (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.el | 3 |
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) |
