From e645e77b4ba808a48885e121a687daad8d981c0c Mon Sep 17 00:00:00 2001 From: Dave Love Date: Sun, 30 Jan 2000 17:52:18 +0000 Subject: [PATCH] (jka-compr-load): Fix up load-history. --- lisp/ChangeLog | 2 ++ lisp/jka-compr.el | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d63fb8eb261..c7590e8d80b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2000-01-30 Dave Love + * jka-compr.el (jka-compr-load): Fix up load-history. + * emacs-lisp/cl.el: Replace autoloads for dolist, dotimes. * emacs-lisp/cl-macs.el: Revert previous change. diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index a3fae5b05bc..d18483e7669 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el @@ -704,9 +704,14 @@ There should be no more than seven characters after the final `/'." (let ((load-force-doc-strings t)) (load load-file noerror t t)) - (or nomessage - (message "Loading %s...done." file))) + (message "Loading %s...done." file)) + ;; Fix up the load history to point at the right library. + (let ((l (assoc load-file load-history))) + ;; Remove .gz and .elc?. + (while (file-name-extension file) + (setq file (file-name-sans-extension file))) + (setcar l file))) (jka-compr-delete-temp-file local-copy)) -- 2.39.5