Function: dired-do-man
dired-do-man is an interactive and byte-compiled function defined in
dired.el.gz.
Signature
(dired-do-man)
Documentation
In Dired, run man on this file.
Probably introduced at or before Emacs version 29.1.
Key Bindings
Aliases
dired-man (obsolete since 29.1)
Source Code
;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defvar manual-program) ; from man.el
(defun dired-do-man ()
"In Dired, run `man' on this file."
(interactive nil dired-mode)
(require 'man)
(let* ((file (dired-get-file-for-visit))
(Man-support-remote-systems (file-remote-p file))
(manual-program (string-replace "*" "%s"
(dired-guess-shell-command
"Man command: " (list file)))))
(Man-getpage-in-background (file-local-name file))))