diff options
| author | Stefan Monnier <monnier@iro.umontreal.ca> | 2026-05-25 17:01:07 -0400 |
|---|---|---|
| committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2026-05-25 17:01:07 -0400 |
| commit | 72b50901ef95410810b4ca7ecf103f028b8ae4b4 (patch) | |
| tree | fb2d1c60e39fb667a32578210fdfbec1a10365cf | |
| parent | ea2110b6e56ea4dc8d9fbe3ee19a7f56ffafa87f (diff) | |
lisp/emacs-lisp/package.el (package-quickstart-refresh): Delete stale elc
| -rw-r--r-- | lisp/emacs-lisp/package.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 068b94360d4..9ff761f0157 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -4814,6 +4814,10 @@ find FILE." ;; byte-compile-warnings: (not make-local) ;; End: ")) + (with-demoted-errors "%S" + ;; The `.elc' file is now stale. Remove it so it doesn't affect + ;; its own compilation or lingers in case of compilation failure. + (delete-file (concat package-quickstart-file "c"))) ;; FIXME: Do it asynchronously in an Emacs subprocess, and ;; don't show the byte-compiler warnings. (byte-compile-file package-quickstart-file))) |
