]> git.eshelyaron.com Git - emacs.git/commit
Render Eldoc's echo area separately
authorJoão Távora <joaotavora@gmail.com>
Thu, 23 Mar 2023 09:02:18 +0000 (09:02 +0000)
committerJoão Távora <joaotavora@gmail.com>
Thu, 23 Mar 2023 13:47:58 +0000 (13:47 +0000)
commitf223ca031863babe5032bbc7197a04ce5e2340d9
tree55c39aefef3b703a9f7cb70e055977936c73e791
parentb8357df072a93ab80931931673dc35de64fb4067
Render Eldoc's echo area separately

Previously, the display function 'eldoc-display-in-echo-area' reused
the same buffer as 'eldoc-display-in-doc-buffer', but that made it
harder to render documentation items differently depending on the
specific constraints of each display functions.

* lisp/emacs-lisp/eldoc.el (eldoc-documentation-functions): Update docstring.
(eldoc--doc-buffer-docs): Remove.
(eldoc--format-doc-buffer): Simplify.
(eldoc--echo-area-render): New helper.
(eldoc-display-in-echo-area): Use 'eldoc--echo-area-render'.

fixup
lisp/emacs-lisp/eldoc.el