From 2d5788f46de3758fc468592cb2f17390c5c07db6 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 12 Sep 2013 16:39:13 -0400 Subject: [PATCH] * test/automated/eshell.el (with-temp-eshell): Avoid hangs in batch mode due to "has a running proces; kill it?" prompts. --- test/ChangeLog | 5 +++++ test/automated/eshell.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/ChangeLog b/test/ChangeLog index 3e42e18b2b4..70f9f378d39 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2013-09-12 Glenn Morris + + * automated/eshell.el (with-temp-eshell): Avoid hangs in batch mode + due to "has a running proces; kill it?" prompts. + 2013-09-12 Stefan Monnier * automated/eshell.el: Rename from eshell.el. diff --git a/test/automated/eshell.el b/test/automated/eshell.el index a7df2945424..a78c34e4f39 100644 --- a/test/automated/eshell.el +++ b/test/automated/eshell.el @@ -34,7 +34,8 @@ (unwind-protect (with-current-buffer eshell-buffer ,@body) - (kill-buffer eshell-buffer)))) + (let (kill-buffer-query-functions) + (kill-buffer eshell-buffer))))) (defun eshell-insert-command (text &optional func) "Insert a command at the end of the buffer." -- 2.11.4.GIT