Function: dired-minibuffer-default-add-shell-commands

dired-minibuffer-default-add-shell-commands is an interactive and byte-compiled function defined in dired-aux.el.gz.

Signature

(dired-minibuffer-default-add-shell-commands)

Documentation

Return a list of all commands associated with current Dired files.

This function is used to add all related commands retrieved by mailcap to the end of the list of defaults just after the default value.

Key Bindings

Aliases

minibuffer-default-add-dired-shell-commands (obsolete since 29.1)

Source Code

;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defun dired-minibuffer-default-add-shell-commands ()
  "Return a list of all commands associated with current Dired files.
This function is used to add all related commands retrieved by `mailcap'
to the end of the list of defaults just after the default value."
  (interactive)
  (let ((commands (and (boundp 'dired-aux-files)
		       (require 'mailcap nil t)
		       (mailcap-file-default-commands dired-aux-files))))
    (if (listp minibuffer-default)
	(append minibuffer-default commands)
      (cons minibuffer-default commands))))