From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Allen Li <darkfeline@felesatra.moe>
Newsgroups: gmane.emacs.bugs
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
Message-ID: <CADbSrJyPvX-w8tq=zKXAcR7PyKjVcFkrhn=EaLihf_XtDtNqiQ@mail.gmail.com>
References: <CADbSrJyYvAiO-dmFK-uhp39gwubf5SzDeP1TtrLEOvZc3SgLLQ@mail.gmail.com>
 <87jznyfkas.fsf@posteo.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="23658"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 68678@debbugs.gnu.org
To: Philip Kaludercic <philipk@posteo.net>
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 26 00:00:31 2024
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1rT8hz-0005uu-8V
	for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jan 2024 00:00:31 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces@gnu.org>)
	id 1rT8hi-0006Jk-BC; Thu, 25 Jan 2024 18:00:14 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1rT8hR-0006IY-3K
 for bug-gnu-emacs@gnu.org; Thu, 25 Jan 2024 17:59:58 -0500
Original-Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1rT8hQ-0002Do-R4
 for bug-gnu-emacs@gnu.org; Thu, 25 Jan 2024 17:59:56 -0500
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rT8hW-0004ga-Tk
 for bug-gnu-emacs@gnu.org; Thu, 25 Jan 2024 18:00:02 -0500
X-Loop: help-debbugs@gnu.org
Resent-From: Allen Li <darkfeline@felesatra.moe>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Thu, 25 Jan 2024 23:00:02 +0000
Resent-Message-ID: <handler.68678.B68678.170622354417910@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 68678
X-GNU-PR-Package: emacs
Original-Received: via spool by 68678-submit@debbugs.gnu.org id=B68678.170622354417910
 (code B ref 68678); Thu, 25 Jan 2024 23:00:02 +0000
Original-Received: (at 68678) by debbugs.gnu.org; 25 Jan 2024 22:59:04 +0000
Original-Received: from localhost ([127.0.0.1]:49548 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1rT8gZ-0004eo-GS
 for submit@debbugs.gnu.org; Thu, 25 Jan 2024 17:59:03 -0500
Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:40015)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <darkfeline@felesatra.moe>) id 1rT8gW-0004eI-2P
 for 68678@debbugs.gnu.org; Thu, 25 Jan 2024 17:59:02 -0500
Original-Received: by mail-lf1-x132.google.com with SMTP id
 2adb3069b0e04-5101ebc74ecso294825e87.0
 for <68678@debbugs.gnu.org>; Thu, 25 Jan 2024 14:58:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=felesatra-moe.20230601.gappssmtp.com; s=20230601; t=1706223528; x=1706828328;
 darn=debbugs.gnu.org; 
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=5zxHi21Wwb3erbBkipyASt8L1CK/NHYBlaW5YS87EJY=;
 b=MF4gcpA2OjvjzvyrMGvdMA8KItlZjBQFlhJ0vgrby57C5Qjwo5GdnmpsB7YVRt5r0F
 IbSLuO+UxyKwCm1h3YWD8pvF1YhKAS9wYEMQ3QPqZ4I8Kxq06pwLQXmojs2mMEnPXvpb
 m96KuGl0rFnjefrAhjtovL4qQdxljgkIP5bfawLqraY+B5wJiABZQzJ+H84FkN7Jc4Kw
 ForHbyyH3eRaeMKfRF52f1CyD+XNmmePNNET48wzheuouNEUq4GpPC2ilhoQJmACbyd9
 T0V6T73MxGH660LAiSNDd1xLHSkc5hTloxWHlqWCqNpUQk9XMjVSxd9vFMHeVyO3pgf1
 52Yw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1706223528; x=1706828328;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=5zxHi21Wwb3erbBkipyASt8L1CK/NHYBlaW5YS87EJY=;
 b=a9AXRdMEwCukyaCabIqCnHMlLIHWxtMzj/Aodjywo/xuZaXoTjaIMHUf3g7Kr1FZ/4
 lAyGP/igCKQckvE43n7QTegEPKgrW4itW0Q+ScIsjhsvIRyT/9bNlGW1yOMKoqw7l17f
 vV6zzkVH/grHgWvTj6uUd1gafioQsnPBPgqrX0PSGcP0XhlK/RqPTqYw9Vz35wTwQ2FP
 OdluQmkpEwp47w8vudGbFBgpi9u6sqdRkYv6gzXihLpZuMpYEs9rAul4taQBpKFcEcDK
 qj8xF+wEI9yQq3dxkz2H/G1lOHfsrUReU16wpP2iQsqKeeLo2zEADI8oTFbNPbEtYmq4
 PTVw==
X-Gm-Message-State: AOJu0YxaguJ1PgeBDm6TP2IY3v3Qv5RsyEJ9gbp/J/C7ZAKn50hpPkeF
 9F1RbAi0Z3uT/1juAyNbdSGsSJIfbtjnwqMfnucTRBa1yCOoWU/x3iHGlVYD6h5QHjuPIg02DaU
 uwdbDS0oxMLSd5QeMfsjCNlU8ILH9nHA+/xXyRw==
X-Google-Smtp-Source: AGHT+IGwpFEy3MslkcfpT68ADdVtQO2JoJ+zXDxeEJv4M5i8R4kYe2mBS/VNINh+JghK9FsuMTcY4kaSBQjlkXSMHs0=
X-Received: by 2002:a19:4f07:0:b0:50e:84f9:22dc with SMTP id
 d7-20020a194f07000000b0050e84f922dcmr642800lfb.2.1706223527680; Thu, 25 Jan
 2024 14:58:47 -0800 (PST)
In-Reply-To: <87jznyfkas.fsf@posteo.net>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.bugs:278874
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/278874>

On Wed, Jan 24, 2024 at 2:17=E2=80=AFPM Philip Kaludercic <philipk@posteo.n=
et> 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.