diff lisp/dired-x.el @ 26286:ee92c3ce100d

(dired-smart-shell-command): Use shell-command-history as in shell-command.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 01 Nov 1999 15:41:33 +0000
parents d414a697a646
children 8ebb1cf20a84
line wrap: on
line diff
--- a/lisp/dired-x.el	Mon Nov 01 15:28:32 1999 +0000
+++ b/lisp/dired-x.el	Mon Nov 01 15:41:33 1999 +0000
@@ -823,7 +823,9 @@
 
 (defun dired-smart-shell-command (cmd &optional insert)
   "Like function `shell-command', but in the current Tree Dired directory."
-  (interactive "sShell command: \nP")
+  (interactive (list (read-from-minibuffer "Shell command: "
+					   nil nil nil 'shell-command-history)
+		     current-prefix-arg))
   (let ((default-directory (default-directory)))
     (shell-command cmd insert)))