]> git.eshelyaron.com Git - emacs.git/commitdiff
* Don't require trailing backslashes in `comp-eln-load-path' (bug#45462)
authorAndrea Corallo <akrl@sdf.org>
Sun, 27 Dec 2020 16:50:05 +0000 (17:50 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sun, 27 Dec 2020 16:56:17 +0000 (17:56 +0100)
* src/comp.c (Fcomp_el_to_eln_filename): Don't require
trailing backslashes in comp-eln-load-path.

src/comp.c

index ee3c15a2f676e4b6a7adf29939f096c21b463f19..52ebf92c500764ab5d703508801def3fe0ee749e 100644 (file)
@@ -4085,7 +4085,8 @@ If BASE-DIR is nil use the first entry in `comp-eln-load-path'.  */)
     base_dir = Fexpand_file_name (base_dir, Vinvocation_directory);
 
   return Fexpand_file_name (filename,
-                           concat2 (base_dir, Vcomp_native_version_dir));
+                           concat2 (Ffile_name_as_directory (base_dir),
+                                    Vcomp_native_version_dir));
 }
 
 DEFUN ("comp--install-trampoline", Fcomp__install_trampoline,