diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2009-09-20 20:38:40 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2009-09-20 20:38:40 +0000 |
commit | 96a6f67b5bf6c2359e886e9f4bac8369245f38ca (patch) | |
tree | baba360f13716be99bd02edf9947095c3f84991e | |
parent | e0acd6dc645a7062a0fece9642c1c037e5c04145 (diff) |
Protect against error case
-rw-r--r-- | lib/scomint.el | 5 |
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) |