Emacs lisp: fix variable value display in eldoc

`fboundp' does not check if a variable is bound, but rather a function.
Use `boundp'.
This commit is contained in:
Nikita Bloshchanevich 2021-03-06 16:28:28 +01:00
parent 2ab8800bb4
commit 169d0b2ed5

View file

@ -99,7 +99,7 @@ employed so that flycheck still does *some* helpful linting.")
"Display variable value next to documentation in eldoc."
:around #'elisp-get-var-docstring
(when-let (ret (funcall orig-fn sym))
(if (fboundp sym)
(if (boundp sym)
(concat ret " "
(let* ((truncated " [...]")
(print-escape-newlines t)