Fix 'eldoc-show-help-at-pt'

* lisp/emacs-lisp/eldoc.el (eldoc-show-help-at-pt): Don't test
'eldoc-help-at-pt'.  (Bug#81356)
This commit is contained in:
Daniel Mendler 2026-07-07 16:34:19 +02:00 committed by Eli Zaretskii
parent 7621ee1d01
commit f9a8c61f50

View file

@ -982,7 +982,7 @@ the docstrings eventually produced, using
(defun eldoc-show-help-at-pt (&rest _)
"Show help at point via Eldoc if `eldoc-help-at-pt' is non-nil.
Intended for `eldoc-documentation-functions' (which see)."
(when-let* ((help (and eldoc-help-at-pt (help-at-pt-kbd-string))))
(when-let* ((help (help-at-pt-kbd-string)))
(format "Help: %s" (substitute-command-keys help))))