mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/emacs-lisp: fix wrong-num-args error on doc lookup
This commit is contained in:
@ -109,7 +109,7 @@ library/userland functions"
|
|||||||
(defun +emacs-lisp-lookup-documentation (thing)
|
(defun +emacs-lisp-lookup-documentation (thing)
|
||||||
"Lookup THING with `helpful-variable' if it's a variable, `helpful-callable'
|
"Lookup THING with `helpful-variable' if it's a variable, `helpful-callable'
|
||||||
if it's callable, `apropos' otherwise."
|
if it's callable, `apropos' otherwise."
|
||||||
(cond ((when-let (module (+emacs-lisp--module-at-point thing))
|
(cond ((when-let (module (+emacs-lisp--module-at-point))
|
||||||
(doom/help-modules (car module) (cadr module))
|
(doom/help-modules (car module) (cadr module))
|
||||||
(when (eq major-mode 'org-mode)
|
(when (eq major-mode 'org-mode)
|
||||||
(with-demoted-errors "%s"
|
(with-demoted-errors "%s"
|
||||||
|
Reference in New Issue
Block a user