1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

(dired-smart-shell-command): Use

shell-command-history as in shell-command.
This commit is contained in:
Gerd Moellmann 1999-11-01 15:41:33 +00:00
parent ca693be807
commit 93714f3c9d

View 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)))