Received: (at 80721) by debbugs.gnu.org; 2 Apr 2026 18:20:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 02 14:20:47 2026
Received: from localhost ([127.0.0.1]:45890 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1w8Mes-00080Z-TT
for submit <at> debbugs.gnu.org; Thu, 02 Apr 2026 14:20:47 -0400
Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]:59506)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
id 1w8Mep-00080N-Nt
for 80721 <at> debbugs.gnu.org; Thu, 02 Apr 2026 14:20:44 -0400
Received: by mail-ot1-x344.google.com with SMTP id
46e09a7af769-7dbb6c072f1so113854a34.2
for <80721 <at> debbugs.gnu.org>; Thu, 02 Apr 2026 11:20:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1775154042; x=1775758842; darn=debbugs.gnu.org;
h=content-transfer-encoding:mime-version:user-agent:message-id:date
:references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to;
bh=COdX6R2NZ/bAMb+bVI1DEUBxhYhB8LLNqb5aejTTkao=;
b=UDxrcKVCyGUx0/bY2LaCnbEZvY30B7dQdCiSGp4Ybmk1GeuIwl/NXiqioyomeX68AL
4+JhySeS5iI7O7R2Nb+qT+bTISDxp6BXbrbDV/BL1Dfuw8wYrRT+PxszoRPCLITuk82c
KSDPzwgxUsbMH3gsNSXt47myWeEIchAwAg2SIdggbxSpC8fDf+RKMFy3sJV3dNe4qovx
I4fXtNuezHOp9bhGN2Riypb3MsBWZqDQFaP+/zNd5AEI1apehdn3FF+nfcPHKyOiUoHl
xdQybegGQG0F2l798EeGKZADE9Iye0qRpKD0LefLK4nJAbj1N/r2y2Id/gVVtl2c2nO/
vICQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1775154042; x=1775758842;
h=content-transfer-encoding:mime-version:user-agent:message-id:date
:references:in-reply-to:subject:cc:to:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=COdX6R2NZ/bAMb+bVI1DEUBxhYhB8LLNqb5aejTTkao=;
b=n+8R27kmQXuPU4GKmNNZxS4Fq+2HJ/dVEUp1TQvsqxt/Lt5HjWLhZ9TGwbgQr5wXmd
lTb6XMUbVYOxQ+JR9O31APZA49VrPiJ6H7KA2/mW3X+1Tu010TnxxNu69PqB1sfgxSTS
5WNxvjSYpm+2OqyoE6sMaIopFdV5pJjHmsmeFbTaC9pAwsPT9rkV+XH8C4r9KzZbP4q1
sMtMbBcualWNJ8LXXBn7JbZveUam4O+bDosr9y39WzWsXHJgGTsqNV2sdMYoJkR3MS/U
BYzGP7LDkAtJxSxW4xTF3ZW1ynEYCkpsFVgn/Ftu11bqskTIUV7o+6V+lxZdDOoCTK2j
YFdg==
X-Forwarded-Encrypted: i=1;
AJvYcCXdV/A2tEJj2vHX1/7Jkg/QB/FrVKzwerohv7s3GeNO38fpmWCvDTI5xf/5DBkBe/J8vtSe+w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwfXfcmkKfEFd/N3bAdhFfok2ABUjKGUTuVkfJIsC8XZOoeF3Wv
8LvEsBvoUgSY3g0kVdKc0moy+BTncSTE8S8d5lkvjEuZ0uBZLXzShFZDyOLg3xKt
X-Gm-Gg: ATEYQzycyDK1TQRqbpmGGXgVzk6jhvdlzwxvYC0Rq/07qCvHRYKUJMRFgSh4HRHh9lC
nY+d3/owEeD7tPNFR+Kr+scQGzSgxCLU5gT8QYmfZCSJNWXcl1Oh7FXX74mXXf/GmvlTWzmg7K8
QFmtJKTlFQCV9heECHNzDEotfEYWgtAMyKu46mtO1qy7EaklJkHHi41ojLgdO+8yvYzpP9nflV8
5bx5mPSk4iPwfuKPkcpHdP/bmFkLnHRrIQiQABhvK4p6ucxZ8EytrxUcJZgVwC/IaPtD8vG5wsg
K0T2/QA4WRuO57yBcu+cqQLrOduW/rjn+S1+uiH5Ew0GL+o2a2qCp+xT1W8XgdTkTEtSOlm6Sb3
yLxajoANlaLQSMrdVuD5p2Y3c3ZCmHMg3tMgyubl963n4+femmWkgBlxmyF9nWs3q7a4bT17Bfy
EaJBrPKC2O/UiQjzEA
X-Received: by 2002:a05:6830:6103:b0:7d9:e9a7:cfaa with SMTP id
46e09a7af769-7dbb712a3a2mr262803a34.15.1775154042395;
Thu, 02 Apr 2026 11:20:42 -0700 (PDT)
Received: from localhost ([2806:10ae:e:11ad:2c27:50f8:3e7f:53ac])
by smtp.gmail.com with ESMTPSA id
46e09a7af769-7dba71261f3sm2623661a34.1.2026.04.02.11.20.41
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 02 Apr 2026 11:20:42 -0700 (PDT)
From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#80721: [PATCH] package: New user option
'package-inhibit-saved-packages'.
In-Reply-To: <865x698sef.fsf@HIDDEN>
References: <874ilu49bo.fsf@HIDDEN> <865x698sef.fsf@HIDDEN>
Date: Thu, 02 Apr 2026 12:20:39 -0600
Message-ID: <s4o7bqpql54.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Eli Zaretskii writes: >> Cc: "Philip Kaludercic" >> From:
Elijah Gabe Pérez >> Date: Wed, 01 Apr 2026 16:14:35 -0600 >> >> This patch
adds a new user option to disable saving >> `package-selected-packages` in
`custom- [...]
Content analysis details: (1.3 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (eg642616[at]gmail.com)
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
in digit (eg642616[at]gmail.com)
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-0.0 SPF_PASS SPF: sender matches SPF record
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust
[2607:f8b0:4864:20:0:0:0:344 listed in]
[list.dnswl.org]
X-Debbugs-Envelope-To: 80721
Cc: philipk@HIDDEN, 80721 <at> debbugs.gnu.org
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.3 (/)
Eli Zaretskii <eliz@HIDDEN> writes:
>> Cc: "Philip Kaludercic" <philipk@HIDDEN>
>> From: Elijah Gabe P=C3=A9rez <eg642616@HIDDEN>
>> Date: Wed, 01 Apr 2026 16:14:35 -0600
>>=20
>> This patch adds a new user option to disable saving
>> `package-selected-packages` in `custom-file` (which I find
>> intrusive).
>
> Why intrusive? That's the documented behavior and purpose of this
> variable. If we don't save it, how can it serve its purpose?
I know that this variable can be useful (in fact, I used it a while
ago), but later I realized its limitations (with `use-package`).
=20
But, Honestly, this variable is only useful for deleting orphaned
dependencies; and `package-install-selected-packages` can be replaced
with `package-install` or `use-package`.
So, I don't see the point in having this variable changing its value in
my `init.el` when I install or remove a package.
=20
This isn't just my opinion, I've seen other users configurations that
disables this (ofc in a hacky way).
An alternative would be to make `use-package` add the packages it
installs to `package-selected-packages`.
>> `use-package` and `package-selected-packages` do not work well
>> together,
>> as `package-selected-packages` may get corrupted, and since I rarely
>> use
>> `package-autoremove`, so, for me (and others too), it would be nice
>> to
>> have this option to prevent it from corrupting my init.el file.
>
> If there's some b ug that is triggered by use-package, we should, of
> course, fix that. But refraining from saving the value is not the
> right solution, IMO, it's just sweeping the problem under the carpet.
I don't know if this bug was already reported here, but AFAIK this issue
was already reported in the use-package bug-tracker, and there was no
progress to fix it.
--=20
- E.G. via GNUS on Android
bug-gnu-emacs@HIDDEN:bug#80721; Package emacs.
Full text available.Received: (at 80721) by debbugs.gnu.org; 2 Apr 2026 12:21:22 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 02 08:21:22 2026 Received: from localhost ([127.0.0.1]:43554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1w8H33-0001Vp-U1 for submit <at> debbugs.gnu.org; Thu, 02 Apr 2026 08:21:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35292) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1w8H31-0001VN-WE for 80721 <at> debbugs.gnu.org; Thu, 02 Apr 2026 08:21:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1w8H2w-00085v-BN; Thu, 02 Apr 2026 08:21:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=EqqzG+CHrhfFLVC3aaofF6auk5CaveC5KIVtbRP3yMM=; b=GiezfHj6yBF2LfkpRKXp uc0CKKj68WJ7D+dTjK7Y2N1oycqQQJLvcUIscrHrxz1VNGJsMVNxtBPoclKUx+TWQjhDT+a2Yy+eI X9EWpQ7zv8Up8+sqri+D22pZPJeqrg5WVRFYEp2ZY0ofAjfun02t9jQW/T5ADPzdfFic/NF8R5YpT h6m3UHB/s6M2BkUj8WGeM99ChQtNJqGTu1Qehf9FbP9O3oGcJc/pbu/70x+wLiUWUqf5SSWIZuPe5 h7knQmCd4I51kdc2CmUuUnJMXPxBjTr42NwXvwcV8p+OrvqO3poWWHvdDYcRIaKoHsd7viwRM9RAf ffs3D/M8t9S4Iw==; Date: Thu, 02 Apr 2026 15:21:12 +0300 Message-Id: <865x698sef.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Elijah Gabe =?iso-8859-1?Q?P=E9rez?= <eg642616@HIDDEN> In-Reply-To: <874ilu49bo.fsf@HIDDEN> (message from Elijah Gabe =?iso-8859-1?Q?P=E9rez?= on Wed, 01 Apr 2026 16:14:35 -0600) Subject: Re: bug#80721: [PATCH] package: New user option 'package-inhibit-saved-packages'. References: <874ilu49bo.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 80721 Cc: philipk@HIDDEN, 80721 <at> debbugs.gnu.org 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: -3.3 (---) > Cc: "Philip Kaludercic" <philipk@HIDDEN> > From: Elijah Gabe Pérez <eg642616@HIDDEN> > Date: Wed, 01 Apr 2026 16:14:35 -0600 > > This patch adds a new user option to disable saving > `package-selected-packages` in `custom-file` (which I find intrusive). Why intrusive? That's the documented behavior and purpose of this variable. If we don't save it, how can it serve its purpose? > `use-package` and `package-selected-packages` do not work well together, > as `package-selected-packages` may get corrupted, and since I rarely use > `package-autoremove`, so, for me (and others too), it would be nice to > have this option to prevent it from corrupting my init.el file. If there's some b ug that is triggered by use-package, we should, of course, fix that. But refraining from saving the value is not the right solution, IMO, it's just sweeping the problem under the carpet.
bug-gnu-emacs@HIDDEN:bug#80721; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 1 Apr 2026 22:14:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 01 18:14:51 2026
Received: from localhost ([127.0.0.1]:60913 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1w83pq-00043b-V8
for submit <at> debbugs.gnu.org; Wed, 01 Apr 2026 18:14:51 -0400
Received: from lists.gnu.org ([2001:470:142::17]:34746)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
id 1w83pn-00042v-3z
for submit <at> debbugs.gnu.org; Wed, 01 Apr 2026 18:14:48 -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 <eg642616@HIDDEN>)
id 1w83ph-0001ml-NZ
for bug-gnu-emacs@HIDDEN; Wed, 01 Apr 2026 18:14:41 -0400
Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from <eg642616@HIDDEN>)
id 1w83pf-0003lQ-SM
for bug-gnu-emacs@HIDDEN; Wed, 01 Apr 2026 18:14:41 -0400
Received: by mail-oi1-x243.google.com with SMTP id
5614622812f47-464bba3a9easo156010b6e.0
for <bug-gnu-emacs@HIDDEN>; Wed, 01 Apr 2026 15:14:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1775081677; x=1775686477; darn=gnu.org;
h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
:date:message-id:reply-to;
bh=fltD/4Ph0MJOUAUDRoHxGjwDEUYPfB8OA+upuXUauuo=;
b=hiC840CPY95x3liMRtgwjwO/LdpAOCmef6NPydWq4HXiBWZZhi/UdoBWpw43AVvjuv
noAc0nLf3eCs9AtSkr9zABx5JgkrN/mo9E01xSZRUzzncBog3VU5PC2EVFTUSJgZNxSj
A+K0TwfueKznsrz9S2DgXq9nKHfg+zKLi8rzsQHlr6UljsMOsU5fme2K4S6/Ie2XDc7Z
HRi1oBL5/WuMwXSy88ncQyzH0q8Ariv0vbi8uVjIbYA19ulBX0+jeLXGJzGNdxeCCS7V
3bL19yiY4crC1F/Z/O6D2k/vAcxBD6ZFfydLpfv4ntrhWJzGHZSE6MfIijh/grd7J4H/
wawA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1775081677; x=1775686477;
h=mime-version:message-id:date:subject:to:from:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=fltD/4Ph0MJOUAUDRoHxGjwDEUYPfB8OA+upuXUauuo=;
b=kTVaN7KqSjyNGBquWPf8YqBAXxxA0XW91KUuUYt6n2LgolZKogr8pupPORAd/UraTz
xNoZJC6OxVmrtUNmXHsCTbKudYTmLG8tFa+JTyuE3f6xk0MoQoWhLDGgjVgyIoJ2MCkY
pZkIyIFYipbJv17zuDrAyBUGkeK9ZHXF6RzjPFVbSpo2NuyYR9fNuxJ/0d++FiKw4IsV
uJx23TrHcpRbN/pWZ7RqwmNOphIeO5QiVomt/ecjoZrz4vLONvt2JaQnuvX75qWycSdh
WaEIE66RnfWc05A4GkiUmfiS81OFOQ4MljzoNmX3mK1kwOIK/+aL8koK+K5fEtrVyB2U
Qk6Q==
X-Gm-Message-State: AOJu0YynXr783rIS6XvY+hTQ5x9qAjWsdTPsd+YFFuH8JhSbXT7NKn05
FK75aV31ynCmFtJQ620aHia1AckiYGC1EoIdtyIceZEq97zTA4eN+3jeiSpKGgIlQL4=
X-Gm-Gg: ATEYQzwNflXXp3UXQ1eaIhpRQ4iLkpFGCRMdvwhEx2plzc36ETJQxywCVv0nvhwR006
CVJDgOEO3MoBq4IUazHRYaQveybap/2RsktWEoMFd4vtDUgEoZy7eRGz+wB4Jd9QyCOSEHkQwHV
2j8RugTri1fWcruKOx9dB8xKkA9/yYZor0GrXhvM8qzjSSjVrhVYMCZyBGGX7xA5BukMkIw/SMc
nVyt4B2IONIwejD6t3dYKnArrHWRbVLXkZDUvG9AmOTFKk9bOQLJr7MStIm/MyNqZyYoCWtB+yr
1W+9XeZ4C8uIc9+960zG6UTShyzvRMMFJA+UZCnnyPkz6QtzQBIV2SkjiwDoCWGHDm+o02RfzcQ
jN7xiYBWuh/anlO1e1AbLYuzeAvCpf/6B9vPXavoMn10KCz3SNQlxFlH9zuGz/OF4gg/PNznL1B
m6KxpACj6LYsc=
X-Received: by 2002:a05:6808:2447:b0:467:2609:1247 with SMTP id
5614622812f47-46d87d35051mr763015b6e.19.1775081677571;
Wed, 01 Apr 2026 15:14:37 -0700 (PDT)
Received: from gabe ([200.77.20.165]) by smtp.gmail.com with ESMTPSA id
586e51a60fabf-422eaed1468sm895872fac.1.2026.04.01.15.14.36
for <bug-gnu-emacs@HIDDEN>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 01 Apr 2026 15:14:37 -0700 (PDT)
From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] package: New user option 'package-inhibit-saved-packages'.
X-Debbugs-Cc: "Philip Kaludercic" <philipk@HIDDEN>
Date: Wed, 01 Apr 2026 16:14:35 -0600
Message-ID: <874ilu49bo.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2607:f8b0:4864:20::243;
envelope-from=eg642616@HIDDEN; helo=mail-oi1-x243.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 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,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 2.2 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Tags: patch This patch adds a new user option to disable
saving
`package-selected-packages` in `custom-file` (which I find intrusive).
`use-package`
and `package-selected-packages` do not work well together,
as `package-selected-packages`
may get corrupted, and since I rarely use `package-autoremove`, so, for me
(and others too), it [...]
Content analysis details: (2.2 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
in digit (eg642616[at]gmail.com)
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (eg642616[at]gmail.com)
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
X-Debbugs-Envelope-To: submit
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: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Tags: patch This patch adds a new user option to disable saving
`package-selected-packages` in `custom-file` (which I find intrusive). `use-package`
and `package-selected-packages` do not work well together, as `package-selected-packages`
may get corrupted, and since I rarely use `package-autoremove`, so, for me
(and others too), it [...]
Content analysis details: (1.2 points, 10.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust
[2001:470:142:0:0:0:0:17 listed in]
[list.dnswl.org]
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
in digit (eg642616[at]gmail.com)
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (eg642616[at]gmail.com)
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager
--=-=-=
Content-Type: text/plain
Tags: patch
This patch adds a new user option to disable saving
`package-selected-packages` in `custom-file` (which I find intrusive).
`use-package` and `package-selected-packages` do not work well together,
as `package-selected-packages` may get corrupted, and since I rarely use
`package-autoremove`, so, for me (and others too), it would be nice to
have this option to prevent it from corrupting my init.el file.
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
filename=0001-package-New-user-option-package-inhibit-saved-packag.patch
From 761efa2bf5e476b0f750cbd6c385da752749fb1d Mon Sep 17 00:00:00 2001
From: Elias Gabriel Perez <eg642616@HIDDEN>
Date: Wed, 1 Apr 2026 15:56:03 -0600
Subject: [PATCH] package: New user option 'package-inhibit-saved-packages'.
(Bug#)
* etc/NEWS: Announce new option.
* lisp/emacs-lisp/package.el (package-inhibit-saved-packages): New user
option.
(package--save-selected-packages): Use 'package-inhibit-saved-packages'.
---
etc/NEWS | 5 +++++
lisp/emacs-lisp/package.el | 22 ++++++++++++++--------
2 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index 335778d248a..b727e3a9642 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3088,6 +3088,11 @@ is the line that usually appears at the very end of an Emacs Lisp file:
;;; FILENAME ends here
+---
+*** New user option 'package-inhibit-saved-packages'
+If this option is non-nil, all the packages in
+'package-selected-packages' will not be saved in 'custom-file'.
+
---
*** New optional argument to 'package-autoremove'.
An optional argument NOCONFIRM has been added to 'package-autoremove'.
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 5cf2e535c99..359efb136c1 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -276,6 +276,11 @@ package-pinned-packages
:risky t
:version "24.4")
+(defcustom package-inhibit-saved-packages nil
+ "If non-nil, inhibit saving packages through Custom."
+ :type 'boolean
+ :version "31.1")
+
;;;###autoload
(defcustom package-user-dir (locate-user-emacs-file "elpa")
"Directory containing the user's Emacs Lisp packages.
@@ -1786,14 +1791,15 @@ package--find-non-dependencies
(defun package--save-selected-packages (&optional value)
"Set and save `package-selected-packages' to VALUE."
- (when (or value after-init-time)
- ;; It is valid to set it to nil, for example when the last package
- ;; is uninstalled. But it shouldn't be done at init time, to
- ;; avoid overwriting configurations that haven't yet been loaded.
- (setq package-selected-packages (sort value #'string<)))
- (if after-init-time
- (customize-save-variable 'package-selected-packages package-selected-packages)
- (add-hook 'after-init-hook #'package--save-selected-packages)))
+ (unless package-inhibit-saved-packages
+ (when (or value after-init-time)
+ ;; It is valid to set it to nil, for example when the last package
+ ;; is uninstalled. But it shouldn't be done at init time, to
+ ;; avoid overwriting configurations that haven't yet been loaded.
+ (setq package-selected-packages (sort value #'string<)))
+ (if after-init-time
+ (customize-save-variable 'package-selected-packages package-selected-packages)
+ (add-hook 'after-init-hook #'package--save-selected-packages))))
(defun package--user-selected-p (pkg)
"Return non-nil if PKG is a package was installed by the user.
--
2.51.0
--=-=-=
Content-Type: text/plain
--
- E.G via GNU Emacs (sent via GNUS).
--=-=-=--
Elijah Gabe Pérez <eg642616@HIDDEN>:philipk@HIDDEN, bug-gnu-emacs@HIDDEN.
Full text available.philipk@HIDDEN, bug-gnu-emacs@HIDDEN:bug#80721; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.