]> git.eshelyaron.com Git - emacs.git/commit
ElDoc: rework rendering of echo area (bug#62029)
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 21:14:18 +0000 (21:14 +0000)
commite19994fe8c000b0ed2dbc667cdec26cf54356907
treed4bd473847487f205cf8f3071546d1e4d9277e85
parent9b18407c7fd91313544acfb3457be5447987e20a
ElDoc: rework rendering of echo area (bug#62029)

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.

Allow documentation-generating backends to pass an :echo-area property
for tweaking the echo area display of certain documentation items.

* 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'.
lisp/emacs-lisp/eldoc.el