aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/dired-aux.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 0a8ec26f7ca..2b89e527c30 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -619,8 +619,9 @@ with a prefix argument."
619This function is used to add all related commands retrieved by `mailcap' 619This function is used to add all related commands retrieved by `mailcap'
620to the end of the list of defaults just after the default value." 620to the end of the list of defaults just after the default value."
621 (interactive) 621 (interactive)
622 (let ((commands (and (boundp 'files) (require 'mailcap nil t) 622 (let* ((files minibuffer-completion-table)
623 (mailcap-file-default-commands files)))) 623 (commands (and (require 'mailcap nil t)
624 (mailcap-file-default-commands files))))
624 (if (listp minibuffer-default) 625 (if (listp minibuffer-default)
625 (append minibuffer-default commands) 626 (append minibuffer-default commands)
626 (cons minibuffer-default commands)))) 627 (cons minibuffer-default commands))))
@@ -638,6 +639,7 @@ This normally reads using `read-shell-command', but if the
638offer a smarter default choice of shell command." 639offer a smarter default choice of shell command."
639 (minibuffer-with-setup-hook 640 (minibuffer-with-setup-hook
640 (lambda () 641 (lambda ()
642 (set (make-local-variable 'minibuffer-completion-table) files)
641 (set (make-local-variable 'minibuffer-default-add-function) 643 (set (make-local-variable 'minibuffer-default-add-function)
642 'minibuffer-default-add-dired-shell-commands)) 644 'minibuffer-default-add-dired-shell-commands))
643 (setq prompt (format prompt (dired-mark-prompt arg files))) 645 (setq prompt (format prompt (dired-mark-prompt arg files)))