Function: minibuffer-default-add-shell-commands
minibuffer-default-add-shell-commands is a byte-compiled function
defined in simple.el.gz.
Signature
(minibuffer-default-add-shell-commands)
Documentation
Return a list of all commands associated with the current file.
This function is used to add all related commands retrieved by
shell-command-guess to the end of the list of defaults just
after the default value.
Source Code
;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun minibuffer-default-add-shell-commands ()
"Return a list of all commands associated with the current file.
This function is used to add all related commands retrieved by
`shell-command-guess' to the end of the list of defaults just
after the default value."
(let* ((filename (and (atom minibuffer-default)
minibuffer-default))
(commands (and filename (require 'dired-aux)
(shell-command-guess (list filename)))))
(setq commands (mapcar (lambda (command)
(concat command " " filename))
commands))
(if (listp minibuffer-default)
(append minibuffer-default commands)
(cons minibuffer-default commands))))