aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/scomint.el
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2009-09-20 20:38:40 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2009-09-20 20:38:40 +0000
commit96a6f67b5bf6c2359e886e9f4bac8369245f38ca (patch)
treebaba360f13716be99bd02edf9947095c3f84991e /lib/scomint.el
parente0acd6dc645a7062a0fece9642c1c037e5c04145 (diff)
Protect against error case
Diffstat (limited to 'lib/scomint.el')
-rw-r--r--lib/scomint.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/scomint.el b/lib/scomint.el
index bad570c8..f66f248b 100644
--- a/lib/scomint.el
+++ b/lib/scomint.el
@@ -212,7 +212,10 @@ buffer. The hook `scomint-exec-hook' is run after each exec."
(defun scomint-send-eof ()
"Send an EOF to the current buffer's process."
(interactive)
- (scomint-send-input t t)
+ (condition-case nil
+ ;; this fails if process has died already
+ (scomint-send-input t t)
+ (error nil))
(process-send-eof))
(defun scomint-send-input (&optional no-newline artificial)