projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb654b
)
Make package-recompile delete all .elc files first
author
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 16 Jun 2022 12:25:47 +0000
(14:25 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 16 Jun 2022 12:25:47 +0000
(14:25 +0200)
* lisp/emacs-lisp/package.el (package-recompile): Delete all .elc
files under the package directory.
lisp/emacs-lisp/package.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/package.el
b/lisp/emacs-lisp/package.el
index ef46bd3a278aee3677c938716bc12db01662b25a..2c43db989935e1f76b8f6c2843c4ffa2113c05d5 100644
(file)
--- a/
lisp/emacs-lisp/package.el
+++ b/
lisp/emacs-lisp/package.el
@@
-2437,7
+2437,8
@@
object."
;; Delete the old .elc files to ensure that we don't inadvertently
;; load them (in case they contain byte code/macros that are now
;; invalid).
- (dolist (elc (directory-files (package-desc-dir pkg-desc) t "\\.elc\\'"))
+ (dolist (elc (directory-files-recursively
+ (package-desc-dir pkg-desc) "\\.elc\\'"))
(delete-file elc))
(package--compile pkg-desc)))