diff options
| author | Gerd Moellmann | 1999-11-01 15:41:33 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-11-01 15:41:33 +0000 |
| commit | 93714f3c9df46baddea6e2fe0127cb9bf21e6e11 (patch) | |
| tree | 3ee665d4cbf1cadcd95f596a1efa4c2c6bb0649f | |
| parent | ca693be80732dccdef338ebef8b51ec3827bb1e4 (diff) | |
| download | emacs-93714f3c9df46baddea6e2fe0127cb9bf21e6e11.tar.gz emacs-93714f3c9df46baddea6e2fe0127cb9bf21e6e11.zip | |
(dired-smart-shell-command): Use
shell-command-history as in shell-command.
| -rw-r--r-- | lisp/dired-x.el | 4 |
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)." | |||
| 823 | 823 | ||
| 824 | (defun dired-smart-shell-command (cmd &optional insert) | 824 | (defun dired-smart-shell-command (cmd &optional insert) |
| 825 | "Like function `shell-command', but in the current Tree Dired directory." | 825 | "Like function `shell-command', but in the current Tree Dired directory." |
| 826 | (interactive "sShell command: \nP") | 826 | (interactive (list (read-from-minibuffer "Shell command: " |
| 827 | nil nil nil 'shell-command-history) | ||
| 828 | current-prefix-arg)) | ||
| 827 | (let ((default-directory (default-directory))) | 829 | (let ((default-directory (default-directory))) |
| 828 | (shell-command cmd insert))) | 830 | (shell-command cmd insert))) |
| 829 | 831 | ||