fix(emacs-lisp): always try Helpful for doc lookup

As per the description in 6671adc68, this module should always use
Helpful's functions as long as Helpful is available (ie. not explicitly
disabled by the user in packages.el). The remapping of `describe-symbol`
is irrelevant here - the user might prefer to rebind `C-h C-o` to
`describe-symbol` (as `helpful-symbol` cannot look up types), but that
doesn't necessarily mean they want this module not to use it.
This commit is contained in:
45mg 2024-09-14 05:52:08 +00:00 committed by Henrik Lissner
parent c82e7d9ea2
commit 2e5307e425

View file

@ -117,8 +117,9 @@ if it's callable, `apropos' otherwise."
(org-show-hidden-entry))))
'deferred))
(thing
(funcall (or (command-remapping #'describe-symbol)
#'describe-symbol)
(funcall (if (fboundp #'helpful-symbol)
#'helpful-symbol
#'describe-symbol)
(intern thing)))
((call-interactively
(if (fboundp #'helpful-at-point)