summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorAndrea Corallo <acorallo@gnu.org>2024-10-22 16:40:12 +0200
committerAndrea Corallo <acorallo@gnu.org>2024-10-22 18:21:15 +0200
commit202adfcfcc2ed20fa91d8377107618c8113f7106 (patch)
tree3aab4d3f485f56eba015e48e2ae7cc846224c107 /lisp/emacs-lisp
parentf58652a41978974855be0993d42ace225b64efed (diff)
downloademacs-202adfcfcc2ed20fa91d8377107618c8113f7106.tar.gz
emacs-202adfcfcc2ed20fa91d8377107618c8113f7106.tar.bz2
emacs-202adfcfcc2ed20fa91d8377107618c8113f7106.zip
* Rework 'comp-lookup-eln'
* lisp/emacs-lisp/comp.el (comp-lookup-eln): Rework to use 'comp-eln-load-path-eff'.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/comp.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index f72d23fee1a..fc87014202c 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -3643,12 +3643,8 @@ the deferred compilation mechanism."
Search happens in `native-comp-eln-load-path'."
(cl-loop
with eln-filename = (comp-el-to-eln-rel-filename filename)
- for dir in native-comp-eln-load-path
- for f = (expand-file-name eln-filename
- (expand-file-name comp-native-version-dir
- (expand-file-name
- dir
- invocation-directory)))
+ 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)))