* test/automated/eshell.el (with-temp-eshell): Avoid hangs in batch mode
authorGlenn Morris <rgm@gnu.org>
Thu, 12 Sep 2013 20:39:13 +0000 (16:39 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 12 Sep 2013 20:39:13 +0000 (16:39 -0400)
due to "has a running proces; kill it?" prompts.

test/ChangeLog
test/automated/eshell.el

index 3e42e18..70f9f37 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-12  Glenn Morris  <rgm@gnu.org>
+
+       * 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  <monnier@iro.umontreal.ca>
 
        * automated/eshell.el: Rename from eshell.el.
index a7df294..a78c34e 100644 (file)
@@ -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."