Function: info-lookup-symbol

info-lookup-symbol is an autoloaded, interactive and byte-compiled function defined in info-look.el.gz.

Signature

(info-lookup-symbol SYMBOL &optional MODE SAME-WINDOW)

Documentation

Look up and display documentation of SYMBOL in the relevant Info manual.

SYMBOL should be an identifier: a function or method, a macro, a variable, a data type, a class, etc.

Interactively, prompt for SYMBOL; 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 symbol is the one found at point.

MODE is the major mode whose Info manuals to search for the documentation of SYMBOL. 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.

Is SAME-WINDOW, try to reuse the current window instead of popping up a new one.

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-symbol 'info-file "emacs")
;;;###autoload
(defun info-lookup-symbol (symbol &optional mode same-window)
  "Look up and display documentation of SYMBOL in the relevant Info manual.
SYMBOL should be an identifier: a function or method, a macro, a variable,
a data type, a class, etc.

Interactively, prompt for SYMBOL; 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 symbol is the one found at point.

MODE is the major mode whose Info manuals to search for the documentation
of SYMBOL.  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.

Is SAME-WINDOW, try to reuse the current window instead of
popping up a new one."
  (interactive
   (info-lookup-interactive-arguments 'symbol current-prefix-arg))
  (info-lookup 'symbol symbol mode same-window))