Function: info-lookup-file
info-lookup-file is an autoloaded, interactive and byte-compiled
function defined in info-look.el.gz.
Signature
(info-lookup-file FILE &optional MODE)
Documentation
Look up and display documentation of FILE in the relevant Info manual.
FILE should be the name of a file; a notable example is a standard header file that is part of the C or C++ standard library.
Interactively, prompt for FILE; you can use M-n (next-history-element) in the minibuffer
to yank the default argument value into the minibuffer so you can edit it.
The default file name is the one found at point.
MODE is the major mode whose Info manuals to search for the documentation
of FILE. It defaults to the current buffer's major-mode; if that
mode doesn't have any Info manuals known to Emacs, the command will
prompt for MODE to use, with completion. With prefix arg, the command
always prompts for MODE.
Probably introduced at or before Emacs version 20.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/info-look.el.gz
;;;###autoload (put 'info-lookup-file 'info-file "emacs")
;;;###autoload
(defun info-lookup-file (file &optional mode)
"Look up and display documentation of FILE in the relevant Info manual.
FILE should be the name of a file; a notable example is a standard header
file that is part of the C or C++ standard library.
Interactively, prompt for FILE; you can use \\<minibuffer-local-completion-map>\\[next-history-element] in the minibuffer
to yank the default argument value into the minibuffer so you can edit it.
The default file name is the one found at point.
MODE is the major mode whose Info manuals to search for the documentation
of FILE. It defaults to the current buffer's `major-mode'; if that
mode doesn't have any Info manuals known to Emacs, the command will
prompt for MODE to use, with completion. With prefix arg, the command
always prompts for MODE."
(interactive
(info-lookup-interactive-arguments 'file current-prefix-arg))
(info-lookup 'file file mode))