* src/lread.c (Fload): Fix `load-history' filling for elns non in
root lisp-dir.
* lisp/startup.el (command-line): Fix `load-history' fixup
algorith for eln files.
(unless (file-readable-p lispdir)
(princ (format "Lisp directory %s not readable?" lispdir))
(terpri)))
- (setq lisp-dir (file-truename (file-name-directory simple-file-name)))
+ (setq lisp-dir
+ (file-truename
+ (if (string-match "\\.eln\\'" simple-file-name)
+ (expand-file-name
+ (concat (file-name-directory simple-file-name) "../"))
+ (file-name-directory simple-file-name))))
(setq load-history
(mapcar (lambda (elt)
(if (and (stringp (car elt))
specbind (Qcurrent_load_list, Qnil);
if (!NILP (Vpurify_flag))
{
- Lisp_Object base = parent_directory (Ffile_name_directory (found));
+ Lisp_Object base = concat2 (parent_directory (Vinvocation_directory),
+ build_string ("lisp/"));
Lisp_Object offset = Flength (base);
hist_file_name = Fsubstring (found, offset, Qnil);
}