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:
parent
2ab8800bb4
commit
169d0b2ed5
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ employed so that flycheck still does *some* helpful linting.")
|
||||||
"Display variable value next to documentation in eldoc."
|
"Display variable value next to documentation in eldoc."
|
||||||
:around #'elisp-get-var-docstring
|
:around #'elisp-get-var-docstring
|
||||||
(when-let (ret (funcall orig-fn sym))
|
(when-let (ret (funcall orig-fn sym))
|
||||||
(if (fboundp sym)
|
(if (boundp sym)
|
||||||
(concat ret " "
|
(concat ret " "
|
||||||
(let* ((truncated " [...]")
|
(let* ((truncated " [...]")
|
||||||
(print-escape-newlines t)
|
(print-escape-newlines t)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue