1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

Tolerate errors while recompiling all packages

* lisp/emacs-lisp/package.el (package-recompile-all): Demote errors
raised by 'package-recompile'.  (Bug#68678)
This commit is contained in:
Philip Kaludercic 2024-02-06 20:12:15 +01:00
parent db195116a4
commit 998f9d98c3

View File

@ -2610,7 +2610,8 @@ This is meant to be used only in the case the byte-compiled files
are invalid due to changed byte-code, macros or the like."
(interactive)
(pcase-dolist (`(_ ,pkg-desc) package-alist)
(package-recompile pkg-desc)))
(with-demoted-errors "Error while recompiling: %S"
(package-recompile pkg-desc))))
;;;###autoload
(defun package-autoremove ()