mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 10:31:23 -08:00
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,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue