mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user