mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05: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:
@ -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)
|
||||
|
Reference in New Issue
Block a user