summaryrefslogtreecommitdiff
path: root/lisp/dired-x.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>1999-11-01 15:41:33 +0000
committerGerd Moellmann <gerd@gnu.org>1999-11-01 15:41:33 +0000
commit93714f3c9df46baddea6e2fe0127cb9bf21e6e11 (patch)
tree3ee665d4cbf1cadcd95f596a1efa4c2c6bb0649f /lisp/dired-x.el
parentca693be80732dccdef338ebef8b51ec3827bb1e4 (diff)
downloademacs-93714f3c9df46baddea6e2fe0127cb9bf21e6e11.tar.gz
(dired-smart-shell-command): Use
shell-command-history as in shell-command.
Diffstat (limited to 'lisp/dired-x.el')
-rw-r--r--lisp/dired-x.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index 91d36034ee5..808dc3b5dc8 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -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)))