GNU logs - #79718, boring messages


Message sent to tromey@HIDDEN, dan@HIDDEN, philipk@HIDDEN, bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#79718: package-upgrade-all should upgrade built-in packages when package-install-upgrade-built-in
Resent-From: Mekeor Melire <mekeor@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: tromey@HIDDEN, dan@HIDDEN, philipk@HIDDEN, bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 29 Oct 2025 11:19:02 +0000
Resent-Message-ID: <handler.79718.B.176173671626386 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 79718
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 79718 <at> debbugs.gnu.org
Cc: tromey@HIDDEN, dan@HIDDEN, philipk@HIDDEN
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
X-Debbugs-Original-Xcc: tromey@HIDDEN, dan@HIDDEN, philipk@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.176173671626386
          (code B ref -1); Wed, 29 Oct 2025 11:19:02 +0000
Received: (at submit) by debbugs.gnu.org; 29 Oct 2025 11:18:36 +0000
Received: from localhost ([127.0.0.1]:57938 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vE4CJ-0006rT-Ht
	for submit <at> debbugs.gnu.org; Wed, 29 Oct 2025 07:18:36 -0400
Received: from lists.gnu.org ([2001:470:142::17]:45780)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mekeor@HIDDEN>) id 1vE4CC-0006qs-PW
 for submit <at> debbugs.gnu.org; Wed, 29 Oct 2025 07:18:30 -0400
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 <mekeor@HIDDEN>) id 1vE4C2-0003z0-EC
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2025 07:18:20 -0400
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mekeor@HIDDEN>) id 1vE4BF-0006JO-FQ
 for bug-gnu-emacs@HIDDEN; Wed, 29 Oct 2025 07:18:15 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 360FC240101
 for <bug-gnu-emacs@HIDDEN>; Wed, 29 Oct 2025 12:16:59 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.de; s=2017;
 t=1761736619; bh=a2OB4hs2SqInlgHOAk6Z2pbT+Oo9PQKeV1Hx8lyYwmw=;
 h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From;
 b=MNJiyi1U/smRkelT+T7mhElEDKh5s4BfLTjFxFT8IfZ5JTvKiosZCqMNYjw/bBN0m
 T5AYr3OaHNX6bBlbKr1j2JFfBTCxNdJqtUh82IcwbjCckXjA1NVGn/m7nigrhSW7EF
 n8InfySu1ThnnMIFEx/XjoOqKuGkPlxTcBoZ0YbJJ8oGuEjvJIVPEoKQsl/koT76aE
 j8ftMUnvt3I91DSMLrJ7oVjnHy7NM6RX3jQlM2qACNWBVoR26iqkiufNrUD6uyfh9u
 sypI7VQ+vAic5cnAk4qrgp7ci3kQZlwlnhNuFZo4ZUEt0C7lxHKNrfMO2q0x8f0VJJ
 DNIrW/WcIBexA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4cxPpL31Syz9rxM;
 Wed, 29 Oct 2025 12:16:58 +0100 (CET)
From: Mekeor Melire <mekeor@HIDDEN>
Date: Wed, 29 Oct 2025 11:16:58 +0000
Message-ID: <87zf9ax8m2.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.66; envelope-from=mekeor@HIDDEN;
 helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

As a user of the most recently released stable version of Emacs,
for packages that are both built into Emacs core as well as
distributed via GNU- or NonGNU-Elpa, I prefer to use their
Elpa-versions (which should be more recent than the versions built
into stable-release Emacs). How do I tell Emacs to install the
Elpa-versions of these packages? Today I realized that the
following snippet as init.el does not that:

    (require 'package)
    (setopt package-install-upgrade-built-in t)
    (package-refresh-contents)
    (package-upgrade-all)

This is because package-upgrade-all determines upgradeable
packages with (package--upgradeable-packages), i.e. it never
passes a non-nil value as the optional INCLUDE-BUILTINS argument
to that function.

I've implemented a personal workaround for this problem with the
following advice but I'm not sure if it's the right approach:

(define-advice package--upgradeable-packages (:filter-args (args))
  (list (or package-install-upgrade-built-in (car-safe args))))

As this advice suggests, I propose as a solution to this issue,
to:

    1. Either edit package-upgrade-all so that it uses the
    package-install-upgrade-built-in option when calling
    package--upgradeable-packages: (package--upgradeable-packages
    package-install-upgrade-built-in)

    2. Or define a new user option that is used as
    INCLUDE-BUILTINS parameter.

What do you think?




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Mekeor Melire <mekeor@HIDDEN>
Subject: bug#79718: Acknowledgement (package-upgrade-all should upgrade
 built-in packages when package-install-upgrade-built-in)
Message-ID: <handler.79718.B.176173671626386.ack <at> debbugs.gnu.org>
References: <87zf9ax8m2.fsf@HIDDEN>
X-Gnu-PR-Message: ack 79718
X-Gnu-PR-Package: emacs
Reply-To: 79718 <at> debbugs.gnu.org
Date: Wed, 29 Oct 2025 11:19:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

As you requested using X-Debbugs-CC, your message was also forwarded to
  tromey@HIDDEN, dan@HIDDEN, philipk@HIDDEN
(after having been given a bug report number, if it did not have one).

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 79718 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
79718: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79718
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Wed, 29 Oct 2025 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.