]> code.delx.au - gnu-emacs/commitdiff
* 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 3e42e18b2b48a351b6200112ba4ee833995455ae..70f9f378d39867625ce590d10d56d1dbffefd512 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 a7df2945424ed6b76513ceeb5b47eba169262ddc..a78c34e4f397a3d9afad27f2631ecebb8d3b2285 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."