# HG changeset patch # User Gerd Moellmann # Date 941470893 0 # Node ID ee92c3ce100db3338aaa5b593f29eb65badba349 # Parent c7b2827eb512fbe82713dafaaf55250598c9edb1 (dired-smart-shell-command): Use shell-command-history as in shell-command. diff -r c7b2827eb512 -r ee92c3ce100d lisp/dired-x.el --- a/lisp/dired-x.el Mon Nov 01 15:28:32 1999 +0000 +++ b/lisp/dired-x.el Mon Nov 01 15:41:33 1999 +0000 @@ -823,7 +823,9 @@ (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)))