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:
parent
c82e7d9ea2
commit
2e5307e425
1 changed files with 3 additions and 2 deletions
|
@ -117,7 +117,8 @@ if it's callable, `apropos' otherwise."
|
||||||
(org-show-hidden-entry))))
|
(org-show-hidden-entry))))
|
||||||
'deferred))
|
'deferred))
|
||||||
(thing
|
(thing
|
||||||
(funcall (or (command-remapping #'describe-symbol)
|
(funcall (if (fboundp #'helpful-symbol)
|
||||||
|
#'helpful-symbol
|
||||||
#'describe-symbol)
|
#'describe-symbol)
|
||||||
(intern thing)))
|
(intern thing)))
|
||||||
((call-interactively
|
((call-interactively
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue