"Return a list of effective eln load directories.
Account for `comp-load-path' and `comp-native-version-dir'."
(mapcar (lambda (dir)
- (concat (file-name-as-directory
- (expand-file-name dir invocation-directory))
- comp-native-version-dir))
+ (expand-file-name comp-native-version-dir
+ (file-name-as-directory
+ (expand-file-name dir invocation-directory))))
comp-eln-load-path))
(defun comp-trampoline-filename (subr-name)
base_dir = Fexpand_file_name (base_dir, Vinvocation_directory);
return Fexpand_file_name (filename,
- concat2 (Ffile_name_as_directory (base_dir),
- Vcomp_native_version_dir));
+ Fexpand_file_name (Vcomp_native_version_dir,
+ base_dir));
}
DEFUN ("comp--install-trampoline", Fcomp__install_trampoline,
{
Lisp_Object files_in_dir =
internal_condition_case_5 (Fdirectory_files,
- concat2 (XCAR (dir_tail),
- Vcomp_native_version_dir),
+ Fexpand_file_name (Vcomp_native_version_dir,
+ XCAR (dir_tail)),
Qt, build_string ("\\.eln\\.old\\'"), Qnil,
Qnil, Qt, return_nil);
FOR_EACH_TAIL (files_in_dir)