]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/lread.c (maybe_swap_for_eln): Fix eln filename (bug#bug#47337).
authorAndrea Corallo <akrl@sdf.org>
Wed, 24 Mar 2021 10:23:00 +0000 (11:23 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 24 Mar 2021 11:43:04 +0000 (12:43 +0100)
src/lread.c

index 5fd52feb3760e5529838890939934df5704a2aee..56717dba810b1ebb315586fb3bb434552bb6a5d5 100644 (file)
@@ -1675,7 +1675,9 @@ maybe_swap_for_eln (bool no_native, Lisp_Object *filename, int *fd)
   FOR_EACH_TAIL_SAFE (eln_path_tail)
     {
       Lisp_Object eln_name =
-       Fexpand_file_name (eln_rel_name, XCAR (eln_path_tail));
+       Fexpand_file_name (eln_rel_name,
+                          Fexpand_file_name (Vcomp_native_version_dir,
+                                             XCAR (eln_path_tail)));
       int eln_fd = emacs_open (SSDATA (ENCODE_FILE (eln_name)), O_RDONLY, 0);
 
       if (eln_fd > 0)