Function: shell-command-guess
shell-command-guess is a byte-compiled function defined in
dired-aux.el.gz.
Signature
(shell-command-guess FILES)
Documentation
Return a list of shell commands, appropriate for FILES.
The list is populated by calling functions from
shell-command-guess-functions. Each function receives the list
of commands and the list of file names and returns the same list
after adding own commands to the composite list.
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(defun shell-command-guess (files)
"Return a list of shell commands, appropriate for FILES.
The list is populated by calling functions from
`shell-command-guess-functions'. Each function receives the list
of commands and the list of file names and returns the same list
after adding own commands to the composite list."
(let ((commands nil))
(run-hook-wrapped 'shell-command-guess-functions
(lambda (fun)
(setq commands (funcall fun commands files))
nil))
commands))