1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-31 01:32:00 -07:00

Eldoc: display documentation in visual-line-mode

Documentation is overwhelmingly prose and intended to be viewed,
not edited.  Using visual-line-mode allows members of
'eldoc-doc-functions' to provide long lines that correctly fill
to the window width.

* lisp/emacs-lisp/eldoc.el (eldoc--format-doc-buffer): Use
visual-line-mode.
This commit is contained in:
João Távora 2026-05-14 09:35:38 +01:00
parent aba60ad0c5
commit 2a166c2dbd

View file

@ -530,6 +530,7 @@ If INTERACTIVE, display it. Else, return said buffer."
(things-reported-on)) (things-reported-on))
(special-mode) (special-mode)
(erase-buffer) (erase-buffer)
(visual-line-mode)
(setq-local nobreak-char-display nil) (setq-local nobreak-char-display nil)
(cl-loop for (docs . rest) on docs (cl-loop for (docs . rest) on docs
for (this-doc . plist) = docs for (this-doc . plist) = docs