emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 207/255: robustly handle prematurely quitting process


From: Eric Schulte
Subject: [elpa] 207/255: robustly handle prematurely quitting process
Date: Sun, 16 Mar 2014 01:02:49 +0000

eschulte pushed a commit to branch go
in repository elpa.

commit d064f8000888aecdc0e0b06e7c60f68091d62643
Author: Eric Schulte <address@hidden>
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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]