From: Gerd Moellmann Date: Mon, 1 Nov 1999 15:41:33 +0000 (+0000) Subject: (dired-smart-shell-command): Use X-Git-Tag: emacs-pretest-21.0.90~6224 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=93714f3c9df46baddea6e2fe0127cb9bf21e6e11;p=emacs.git (dired-smart-shell-command): Use shell-command-history as in shell-command. --- 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)))