File: eldoc.el.html

This program was inspired by the behavior of the "mouse documentation window" on many Lisp Machine systems; as you type a function's symbol name as part of a sexp, it will print the argument list for that function. Behavior is not identical; for example, you need not actually type the function name, you need only move point around in a sexp that calls it. Also, if point is over a documented variable, it will print the one-line documentation for that variable instead, to remind you of that variable's meaning.

This mode is now enabled by default in all major modes that provide support for it, such as emacs-lisp-mode. This is controlled by global-eldoc-mode(var)/global-eldoc-mode(fun).

Major modes for other languages may use ElDoc by adding an appropriate function to the buffer-local value of eldoc-documentation-functions.

Defined variables (27)

eldoc--doc-bufferBuffer displaying latest ElDoc-produced docs.
eldoc--enthusiasm-curbing-timerTimer used by the ‘eldoc-documentation-enthusiast’ strategy.
eldoc--last-request-stateTuple containing information about last ElDoc request.
eldoc--make-callbackHelper for function ‘eldoc--make-callback’.
eldoc-argument-caseCase to display argument names of functions, as a symbol.
eldoc-current-idle-delayIdle time delay currently in use by timer.
eldoc-display-functionsHook of functions tasked with displaying ElDoc results.
eldoc-doc-buffer-separatorString used to separate items in Eldoc documentation buffer.
eldoc-documentation-functionHow to collect and display results of ‘eldoc-documentation-functions’.
eldoc-documentation-functionsHook of functions that produce doc strings.
eldoc-documentation-strategyHow to collect and display results of ‘eldoc-documentation-functions’.
eldoc-echo-area-display-truncation-messageIf non-nil, provide verbose help when a message has been truncated.
eldoc-echo-area-prefer-doc-bufferPrefer ElDoc’s documentation buffer if it is displayed in some window.
eldoc-echo-area-use-multiline-pAllow long ElDoc doc strings to resize echo area display.
eldoc-help-at-ptIf non-nil, show ‘help-at-pt-kbd-string’ at point via Eldoc.
eldoc-idle-delayNumber of seconds of idle time to wait before displaying documentation.
eldoc-last-dataBookkeeping; elements are as follows:
eldoc-message-commandsCommands after which it is appropriate to print in the echo area.
eldoc-message-commands-table-sizeUsed by ‘eldoc-add-command’ to initialize ‘eldoc-message-commands’ obarray.
eldoc-message-functionThe function used by ‘eldoc--message’ to display messages.
eldoc-minor-mode-stringString to display in mode line when ElDoc Mode is enabled; nil for none.
eldoc-modeNon-nil if Eldoc mode is enabled.
eldoc-mode-hookHook run after entering or leaving ‘eldoc-mode’.
eldoc-print-after-editIf non-nil, eldoc info is only shown after editing commands.
eldoc-timerElDoc’s timer object.
global-eldoc-modeNon-nil if Global Eldoc mode is enabled.
global-eldoc-mode-hookHook run after entering or leaving ‘global-eldoc-mode’.

Defined functions (35)

eldoc(&optional INTERACTIVE)
eldoc--documentation-strategy-defcustom(MAIN SECONDARY VALUE DOCSTRING &rest MORE)
eldoc--echo-area-prefer-doc-buffer-p(TRUNCATEDP)
eldoc--echo-area-render(DOCS)
eldoc--echo-area-substring(AVAILABLE)
eldoc--format-doc-buffer(DOCS)
eldoc--invoke-strategy(INTERACTIVE)
eldoc--make-callback(METHOD ORIGIN)
eldoc--message(&optional STRING)
eldoc--message-command-p(COMMAND)
eldoc--request-state()
eldoc--supported-p()
eldoc-add-command(&rest CMDS)
eldoc-add-command-completions(&rest NAMES)
eldoc-display-in-buffer(DOCS INTERACTIVE)
eldoc-display-in-echo-area(DOCS INTERACTIVE)
eldoc-display-message-no-interference-p()
eldoc-display-message-p()
eldoc-doc-buffer(&optional INTERACTIVE)
eldoc-documentation-compose()
eldoc-documentation-compose-eagerly()
eldoc-documentation-default()
eldoc-documentation-enthusiast()
eldoc-edit-message-commands()
eldoc-message(&optional STRING)
eldoc-minibuffer-message(FORMAT-STRING &rest ARGS)
eldoc-mode(&optional ARG)
eldoc-pre-command-refresh-echo-area()
eldoc-print-current-symbol-info(&optional INTERACTIVE)
eldoc-remove-command(&rest CMDS)
eldoc-remove-command-completions(&rest NAMES)
eldoc-schedule-timer()
eldoc-show-help-at-pt(&rest _)
global-eldoc-mode(&optional ARG)
turn-on-eldoc-mode()

Defined faces (1)

eldoc-highlight-function-argumentFace used for the argument at point in a function’s argument list. Note that this face has no effect unless the ‘eldoc-documentation-strategy’ handles it explicitly.