Function: dired-do-open
dired-do-open is an autoloaded, interactive and byte-compiled function
defined in dired-aux.el.gz.
Signature
(dired-do-open &optional ARG)
Documentation
Open all marked (or next ARG) files using an external program.
This "opens" the file(s) using the external command that is most
appropriate for the file(s) according to the system conventions.
If files are marked, run the command on each marked file. Otherwise,
run it on the next ARG files, or on the file at mouse-click, or on the
file at point. The appropriate command to "open" a file on each
system is determined by shell-command-guess-open(var)/shell-command-guess-open(fun).
Probably introduced at or before Emacs version 30.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
;;;###autoload
(defun dired-do-open (&optional arg)
"Open all marked (or next ARG) files using an external program.
This \"opens\" the file(s) using the external command that is most
appropriate for the file(s) according to the system conventions.
If files are marked, run the command on each marked file. Otherwise,
run it on the next ARG files, or on the file at mouse-click, or on the
file at point. The appropriate command to \"open\" a file on each
system is determined by `shell-command-guess-open'."
(interactive "P" dired-mode)
(shell-command-do-open (if (mouse-event-p last-nonmenu-event)
(save-excursion
(mouse-set-point last-nonmenu-event)
(dired-get-marked-files nil arg))
(dired-get-marked-files nil arg))))