From 93714f3c9df46baddea6e2fe0127cb9bf21e6e11 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 1 Nov 1999 15:41:33 +0000 Subject: [PATCH] (dired-smart-shell-command): Use shell-command-history as in shell-command. --- lisp/dired-x.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)))