eschulte pushed a commit to branch go
in repository elpa.
commit d064f8000888aecdc0e0b06e7c60f68091d62643
Author: Eric Schulte <[email protected]>
Date: Thu Jun 13 16:57:04 2013 -0600
robustly handle prematurely quitting process
---
back-ends/gnugo.el | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/back-ends/gnugo.el b/back-ends/gnugo.el
index 229f078..8d1b9d2 100644
--- a/back-ends/gnugo.el
+++ b/back-ends/gnugo.el
@@ -62,9 +62,10 @@
(defun gnugo-input-command (gnugo command)
"Pass COMMAND to the gnugo process running in the buffer of GNUGO."
(with-current-buffer (buffer gnugo)
- (goto-char (process-mark (get-buffer-process (current-buffer))))
- (insert command)
- (when (get-buffer-process (current-buffer)) (comint-send-input)))
+ (when (get-buffer-process (current-buffer))
+ (goto-char (process-mark (get-buffer-process (current-buffer))))
+ (insert command)
+ (comint-send-input)))
(gnugo-wait-for-output gnugo))
(defun gnugo-wait-for-output (gnugo)