From 96a6f67b5bf6c2359e886e9f4bac8369245f38ca Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Sun, 20 Sep 2009 20:38:40 +0000 Subject: Protect against error case --- lib/scomint.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/scomint.el') 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) -- cgit v1.2.3