]> git.eshelyaron.com Git - emacs.git/commit
Fix ElDoc bugs around eldoc-echo-area-use-multiline-p.
authorJoão Távora <joaotavora@gmail.com>
Sat, 18 Jul 2020 22:15:28 +0000 (23:15 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 18 Jul 2020 23:59:14 +0000 (00:59 +0100)
commitc77731e824bbc219561cb9af0d3724e7b6cef789
tree008ba085f6381d73d7e9be6480290d3a490d310e
parent4a7ecaaee06579e582b8560fc495eafd375b1f3b
Fix ElDoc bugs around eldoc-echo-area-use-multiline-p.

If the value is 'truncate-sym-name-if-fit andthe single docstring
doesn't fit in the echo area even when the symbol name is elided, that
step shouldn't be attempted.  Also if the value is nil, really ensure
that only the first line is shown.

* lisp/emacs-lisp/eldoc.el (eldoc--handle-docs): Rework
'truncate-sym-name-if-fit case of eldoc-echo-area-use-multiline-p.
lisp/emacs-lisp/eldoc.el