From 169d0b2ed52d8ff764484c5ef0c66c525939a9f7 Mon Sep 17 00:00:00 2001 From: Nikita Bloshchanevich Date: Sat, 6 Mar 2021 16:28:28 +0100 Subject: [PATCH] Emacs lisp: fix variable value display in eldoc `fboundp' does not check if a variable is bound, but rather a function. Use `boundp'. --- modules/lang/emacs-lisp/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/emacs-lisp/config.el b/modules/lang/emacs-lisp/config.el index a255f642e..4fab52087 100644 --- a/modules/lang/emacs-lisp/config.el +++ b/modules/lang/emacs-lisp/config.el @@ -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)