Function: comp-lookup-eln
comp-lookup-eln is an autoloaded and byte-compiled function defined in
comp.el.gz.
Signature
(comp-lookup-eln FILENAME)
Documentation
Given a Lisp source FILENAME return the corresponding .eln file if found.
Search happens in native-comp-eln-load-path.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/comp.el.gz
;;;###autoload
(defun comp-lookup-eln (filename)
"Given a Lisp source FILENAME return the corresponding .eln file if found.
Search happens in `native-comp-eln-load-path'."
(cl-loop
with eln-filename = (comp-el-to-eln-rel-filename filename)
for dir in (comp-eln-load-path-eff)
for f = (expand-file-name eln-filename dir)
when (file-exists-p f)
do (cl-return f)))