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 16:30:15 +0200 Message-ID: <87bkrsd18o.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> <87o7vsd34m.fsf@gmail.com> 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="36853"; 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:47:10 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 1oVZr4-0009LZ-1s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 16:47:10 +0200 Original-Received: from localhost ([::1]:36408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVZr3-0004lu-2f for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 10:47:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVZbS-0006mg-Fc for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 10:31:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35293) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVZbS-0003mA-6j for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 10:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVZbS-0002YB-15 for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 10:31: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 14:31: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.16624746279755 (code B ref 57503); Tue, 06 Sep 2022 14:31:01 +0000 Original-Received: (at 57503) by debbugs.gnu.org; 6 Sep 2022 14:30:27 +0000 Original-Received: from localhost ([127.0.0.1]:52225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVZat-0002XG-DF for submit@debbugs.gnu.org; Tue, 06 Sep 2022 10:30:27 -0400 Original-Received: from mail-wm1-f48.google.com ([209.85.128.48]:39677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVZao-0002Wj-9H for 57503@debbugs.gnu.org; Tue, 06 Sep 2022 10:30:26 -0400 Original-Received: by mail-wm1-f48.google.com with SMTP id i188-20020a1c3bc5000000b003a7b6ae4eb2so9717179wma.4 for <57503@debbugs.gnu.org>; Tue, 06 Sep 2022 07:30:22 -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=ZkguCSZ9DBDbATYUQmkcNp31qxq48xGdWDrxcCZXCTg=; b=YrDTHie/+NegsoZiMSZz0hZvbLU3wZ8ZEStUFpX7S1uQYj84HLd5/iWpIEvYW9M3JK 9b1ZiS+9Zvp0h/JeRciXaUbWMxqazaiYcOhfuuYU5QDb2QCoHAqZEgbEK2hJ/4tlplfa UlIyPljSo0j9VcCWV37vac206vQpmaWZvUw0fjvCp0v1Xg+CN67AT1o0AwBbCwiKfiWa FuojBGh3ddotOn7xn8VVFkkp94+nksTn43pvbAWbhsy1yFJXB/8rN4SdtgmizHI6FA0s c3dbwO3vv9Hq8gchz5e5U7N2RrC3vBq3jMl++jgv8BKorNDYLhw1cYJfOMwubYDdVe60 mpZQ== 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=ZkguCSZ9DBDbATYUQmkcNp31qxq48xGdWDrxcCZXCTg=; b=ghVWIrlX5n2OwZbKP0uDoxGjvx284iUjbHuAnxrH1NidLN1HX/nnNSYURSgQr3BDQ3 6NhDU40P1zrU2nU84ovCtM+TmCoZVe5Xy4QiziJebxX5NT6MQoCzggTvQWoTidYEG3Y2 yBEF5qkC6QQYtXv0IpohN9A8kPPxWaDHhG/7GaeWZEY/QhrCF66efhlCnD6FA7AhqOL8 r9bFBwcTHL8N46tYYbvke5TYXK89iN5xgUaI7M5asaHK8xbGaWHsvNpduqrNhBQaUwWF IkpQEzS3pX7DFLC9/gEuv1ExKP+KJdQYPGXexN+XbC39uO60iXZ6OoK380NuUv2AGcXR bGQg== X-Gm-Message-State: ACgBeo17uEB5torLC91a/gUaxYFEqftSx3al423NHMHlQPPdd76hnHsE ASfPdmX8Nm37WyuoPm0+NRU= X-Google-Smtp-Source: AA6agR5tB3ID6nmvbfSVNJKyJzH5l/BuJa5Gh+33rzam0IBB4WgxzatyfzuuQOPsHZ4hdGqODACeIw== X-Received: by 2002:a05:600c:34c5:b0:3a5:fd9d:7b2b with SMTP id d5-20020a05600c34c500b003a5fd9d7b2bmr14008710wmq.1.1662474616391; Tue, 06 Sep 2022 07:30:16 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:f116:dbc2:98c7:dbf1]) by smtp.gmail.com with ESMTPSA id h21-20020a05600c351500b003a502c23f2asm22666014wmq.16.2022.09.06.07.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 07:30:15 -0700 (PDT) In-Reply-To: <87o7vsd34m.fsf@gmail.com> (Robert Pluim's message of "Tue, 06 Sep 2022 15:49:29 +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:241675 Archived-At: >>>>> On Tue, 06 Sep 2022 15:49:29 +0200, Robert Pluim s= aid: >>>>> 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-package= s' >>> 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. Robert> On further testing, using package--find-non-dependencies doesn= =CA=BCt seem Robert> to work 100% correctly: installing a package in emacs-29 and th= en Robert> going back to emacs-28 has it showing up as 'dependency', not Robert> 'installed', in `list-packages'. OK, this is because emacs-28 doesn=CA=BCt always update `package-selected-packages' the way I expected it to. I think we=CA=BCve come full circle, and would have to have emacs-29 continue to update it, unless it=CA=BCs explicitly set to some distinct value (Someone=E2=84=A2 upthread suggested 'external). Robert --=20