bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#68678: 29.1; package-recompile-all should skip system packages in pa


From: Allen Li
Subject: bug#68678: 29.1; package-recompile-all should skip system packages in package-directory-list
Date: Thu, 25 Jan 2024 14:58:36 -0800

On Wed, Jan 24, 2024 at 2:17 PM Philip Kaludercic <philipk@posteo.net> wrote:
>
> Would this patch resolve the issue for you:
>
> diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
> index 868373f46c2..fe7b10f569a 100644
> --- a/lisp/emacs-lisp/package.el
> +++ b/lisp/emacs-lisp/package.el
> @@ -2610,7 +2610,8 @@ package-recompile-all
>  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 ()

That works for me, though it's possible that someone may want errors
recompiling user packages surfaced directly.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]