Function: helpful--library-path
helpful--library-path is a byte-compiled function defined in
helpful.el.
Signature
(helpful--library-path LIBRARY-NAME)
Documentation
Find the absolute path for the source of LIBRARY-NAME.
LIBRARY-NAME takes the form "foo.el" , "foo.el" or
"src/foo.c".
If .elc files exist without the corresponding .el, return nil.
Source Code
;; Defined in ~/.emacs.d/elpa/helpful-20250408.334/helpful.el
(defun helpful--library-path (library-name)
"Find the absolute path for the source of LIBRARY-NAME.
LIBRARY-NAME takes the form \"foo.el\" , \"foo.el\" or
\"src/foo.c\".
If .elc files exist without the corresponding .el, return nil."
(when (member (f-ext library-name) '("c" "rs"))
(setq library-name
(f-expand library-name
(f-parent find-function-C-source-directory))))
(condition-case nil
(find-library-name library-name)
(error nil)))