diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-04-23 08:54:46 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-04-23 08:54:46 +0100 |
commit | 81389d5f2dcb41730dcbc76874cc14eadb53ae75 (patch) | |
tree | 4542dd92804bb7b82a0bb49d4fa9a905319d0217 /lisp/emacs-lisp/bytecomp.el | |
parent | 301cf0d27892f76b7967d7f71d48a1899c27d477 (diff) | |
download | emacs-81389d5f2dcb41730dcbc76874cc14eadb53ae75.tar.gz emacs-81389d5f2dcb41730dcbc76874cc14eadb53ae75.tar.bz2 emacs-81389d5f2dcb41730dcbc76874cc14eadb53ae75.zip |
* lisp/emacs-lisp/bytecomp.el (byte-compile-refresh-preloaded): Add comp.eln
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index ff84d94897c..9a5491b10fc 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el @@ -5148,7 +5148,8 @@ Use with caution." (message "Can't find %s to refresh preloaded Lisp files" argv0) (dolist (f (reverse load-history)) (setq f (car f)) - (if (string-match "elc\\'" f) (setq f (substring f 0 -1))) + (when (string-match "el[cn]\\'" f) + (setq f (substring f 0 -1))) (when (and (file-readable-p f) (file-newer-than-file-p f emacs-file) ;; Don't reload the source version of the files below @@ -5157,7 +5158,7 @@ Use with caution." ;; so it can cause recompilation to fail. (not (member (file-name-nondirectory f) '("pcase.el" "bytecomp.el" "macroexp.el" - "cconv.el" "byte-opt.el")))) + "cconv.el" "byte-opt.el" "comp.el")))) (message "Reloading stale %s" (file-name-nondirectory f)) (condition-case nil (load f 'noerror nil 'nosuffix) |