From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#57503: 28.1.91; package-selected-packages should not be saved to custom-file Date: Tue, 06 Sep 2022 18:45:21 +0200 Message-ID: <87czc8pi3i.fsf@miha-pc> References: <87bks0368n.fsf@fastmail.fm> <87h71pc450.fsf@posteo.net> <87y1v1j4os.fsf@gnus.org> <87bkrxg81b.fsf@gmail.com> <875yi4iy37.fsf@gnus.org> <871qsrbedc.fsf@gnus.org> <877d2iff15.fsf@gmail.com> <878rmy3wc7.fsf@gnus.org> <87tu5mdopn.fsf@gmail.com> <87h71mdkuq.fsf@gmail.com> <87edwp1w2z.fsf@gnus.org> <87wnagdih0.fsf@gmail.com> <87ilm0vlk7.fsf@gnus.org> 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="3677"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joost Kremers , 57503@debbugs.gnu.org, Philip Kaludercic , Stefan Kangas To: Lars Ingebrigtsen , Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 06 18:33:23 2022 Return-path: 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 ) id 1oVbVq-0000lA-Ef for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 18:33:22 +0200 Original-Received: from localhost ([::1]:37080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVbVp-000286-Bh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 12:33:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVbVW-00023N-KQ for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 12:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35566) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVbVW-0000P4-Bt for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVbVW-0002ar-1X for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 12:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Sep 2022 16:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57503 X-GNU-PR-Package: emacs Original-Received: via spool by 57503-submit@debbugs.gnu.org id=B57503.16624819329888 (code B ref 57503); Tue, 06 Sep 2022 16:33:01 +0000 Original-Received: (at 57503) by debbugs.gnu.org; 6 Sep 2022 16:32:12 +0000 Original-Received: from localhost ([127.0.0.1]:52498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVbUi-0002ZQ-Dy for submit@debbugs.gnu.org; Tue, 06 Sep 2022 12:32:12 -0400 Original-Received: from kamnitnik.top ([209.250.245.214]:39282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVbUe-0002ZF-SB for 57503@debbugs.gnu.org; Tue, 06 Sep 2022 12:32:10 -0400 In-Reply-To: <87ilm0vlk7.fsf@gnus.org> 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241692 Archived-At: Lars Ingebrigtsen writes: > Robert Pluim writes: > >> How do we define 'fresher'? > > I left that as an exercise for the reader. =F0=9F=AB=A0=20=20 > >> Anyway, if in doubt, use brute force: >> >> (define-multisession-variable package-selected-packages-ms >> (package--find-non-dependencies)) >> >> works fine. We could even condition it on `package-selected-packages' >> being non-nil. > > Hm... I wonder whether we could just drop the variable altogether. > That is, checking for freshness sounds like as much work as > recalculating the variable. > > What are the actual effects of the variable? That is, what code is it > supposed to speed up? Isn't it used for distinguishing packages installed automatically as dependencies from packages installed explicitly by the user? This affects M-x package-autoremove. And if my opinion counts, I like having the variable in my .emacs, possibly under revision control. On a fresh machine, I can then simply type M-x package-install-selected-packages to install all the packages from the variable, and M-x package-autoremove to uninstall all packeges not in listed the variable.