]> git.eshelyaron.com Git - emacs.git/commitdiff
Tolerate errors while recompiling all packages
authorPhilip Kaludercic <philipk@posteo.net>
Tue, 6 Feb 2024 19:12:15 +0000 (20:12 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 12 Feb 2024 07:02:06 +0000 (08:02 +0100)
* lisp/emacs-lisp/package.el (package-recompile-all): Demote errors
raised by 'package-recompile'.  (Bug#68678)

(cherry picked from commit 998f9d98c3b0611b472f4be963d24a96c0a9e197)

lisp/emacs-lisp/package.el

index 868373f46c2e886aae4e7c8c37faf007a3cf6027..fe7b10f569af8b5ab0ccf7059aeb3837a7c345e3 100644 (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 ()