From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim 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 15:49:29 +0200 Message-ID: <87o7vsd34m.fsf@gmail.com> 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="9727"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joost Kremers , 57503@debbugs.gnu.org, Philip Kaludercic , Stefan Kangas , Thierry Volpiatto To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 06 16:27:06 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 1oVZXb-0002Eu-SX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 16:27:03 +0200 Original-Received: from localhost ([::1]:41096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVZXa-0000zf-Us for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 10:27:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVYxo-0006NX-1t for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 09:50:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33268) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVYxm-0003hx-C2 for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 09:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVYxm-0000sy-8Q for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 09:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Sep 2022 13:50:02 +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.16624721803366 (code B ref 57503); Tue, 06 Sep 2022 13:50:02 +0000 Original-Received: (at 57503) by debbugs.gnu.org; 6 Sep 2022 13:49:40 +0000 Original-Received: from localhost ([127.0.0.1]:50200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVYxP-0000sC-Fl for submit@debbugs.gnu.org; Tue, 06 Sep 2022 09:49:39 -0400 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:44761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVYxM-0000ru-Oy for 57503@debbugs.gnu.org; Tue, 06 Sep 2022 09:49:38 -0400 Original-Received: by mail-wr1-f44.google.com with SMTP id c11so11333511wrp.11 for <57503@debbugs.gnu.org>; Tue, 06 Sep 2022 06:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=9Ini+siwY+NZ2dscKo9CVeJ/lqgbJ5WL4lRhRXv6xMo=; b=OR7NncrHQatCxBX2q9TwM/0xtc9JfcBWzYrwTBzyw2w/dzVDxpkgXuc7Q1yf9OYI2M Awz4YMGICrUgDnvWlgk9bozPwgbic7dKyAOlqFjdNA+2RHSVZjZ58QRpspKi4ACXSQye h35GgtaGHDzJb+wZEPqKdNKTZxn/AEwX9Tex/RMw/TU2UGD9mSu0DRlzgbDTHm1LVPY3 TMp8DY37yj6Ehwaa4xQyqWhuWEglHQAvW4CF+6a4gj4SVyM7FiHZRvKeYiMYdlUMJ3GZ 9UHtRA0DOvXOuDsKKLIe8ryaXThfkqRUqGusDjR0H61I/BsLqemL2N5fFlRUxYATAMYm 3jyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=9Ini+siwY+NZ2dscKo9CVeJ/lqgbJ5WL4lRhRXv6xMo=; b=Xrdnqrdl6ymTMKsTHiXFnt0L5NOVgb6zA0IuuVHUew0+TcGKO3IQxwYDk9npNdsS8d ewTl+CBlVPFRFeCLg6FcxG8RZP0Z2OWZj2kpCRH9tOpC/LFNEHzevzzD5c3hYtDF9pF/ BRd2/6GNJXl+1C3EWIWB4JIi+IcxZW1Hyx+V2/RlFeZcwAtHTmgdR4hw0tx/Jt4yrSly eMEPg3LBoAfQBVB4rjcU4s/Cg6ojMSwpF/nXqx177IDcRGbprAjUGdQPJv3BWURwWd1P SVbmUnHZ6XU5IsjOxIOQWSd043siXbzGxMnqgay35arqHdpQ8xS2oHJqRh1Rnz4wj49M jVSg== X-Gm-Message-State: ACgBeo2vukw5XFReV4NIQrbMzRQOe4mVDoSw5PoDAc+rsEUHobkWp3dp Y7c/xE2AlmV4Z3x6KyYTa5M= X-Google-Smtp-Source: AA6agR5mb93Brb1CW1MjhW/ZQxK27ezLagCyBktQGBEpOpaJQ2vgrhNGS732akJZmZONLxESEshMxA== X-Received: by 2002:adf:dd0e:0:b0:226:df82:dd5d with SMTP id a14-20020adfdd0e000000b00226df82dd5dmr22802260wrm.672.1662472170921; Tue, 06 Sep 2022 06:49:30 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:f116:dbc2:98c7:dbf1]) by smtp.gmail.com with ESMTPSA id u9-20020a05600c19c900b003a53731f273sm16012649wmq.31.2022.09.06.06.49.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 06:49:30 -0700 (PDT) In-Reply-To: <87ilm0vlk7.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 06 Sep 2022 12:34:00 +0200") 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:241670 Archived-At: >>>>> On Tue, 06 Sep 2022 12:34:00 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> How do we define 'fresher'? Lars> I left that as an exercise for the reader. =F0=9F=AB=A0=20=20 >> Anyway, if in doubt, use brute force: >>=20 >> (define-multisession-variable package-selected-packages-ms >> (package--find-non-dependencies)) >>=20 >> works fine. We could even condition it on `package-selected-packages' >> being non-nil. Lars> Hm... I wonder whether we could just drop the variable altogethe= r. Lars> That is, checking for freshness sounds like as much work as Lars> recalculating the variable. On further testing, using package--find-non-dependencies doesn=CA=BCt seem to work 100% correctly: installing a package in emacs-29 and then going back to emacs-28 has it showing up as 'dependency', not 'installed', in `list-packages'. Lars> What are the actual effects of the variable? That is, what code = is it Lars> supposed to speed up? It=CA=BCs supposed to allow people to deactivate packages without uninstalling them, I think, although I=CA=BCve never used it like that, and I=CA=BCm not 100% sure it works, since `package--find-non-dependencies' looks in `package-alist', which I presume contains all the packages found in .emacs.d/elpa Thierry, you added the defcustom, is there any light you can shed here? From my perspective we can stop updating the defcustom, but there are bound to be people using it for something. Robert --=20