]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-smart-shell-command): Use
authorGerd Moellmann <gerd@gnu.org>
Mon, 1 Nov 1999 15:41:33 +0000 (15:41 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 1 Nov 1999 15:41:33 +0000 (15:41 +0000)
shell-command-history as in shell-command.

lisp/dired-x.el

index 91d36034ee57d653a9430acffa0ea8e80967b306..808dc3b5dc87ae285fdd43fd7ee5ddd8161181c4 100644 (file)
@@ -823,7 +823,9 @@ cases in variable `default-directory-alist' (which see)."
 
 (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)))