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 10:18:03 +0200 Message-ID: <87wnagdih0.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3945"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joost Kremers , 57503@debbugs.gnu.org, Philip Kaludercic , Stefan Kangas To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 06 10:20:42 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 1oVTp3-0000pR-PT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 10:20:41 +0200 Original-Received: from localhost ([::1]:60610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVTp2-0008TK-FH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 04:20:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVTnS-0008Ge-PS for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 04:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVTnS-0002If-EZ for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 04:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVTnR-0005IY-UL for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 04:19:01 -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 08:19: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.166245229420299 (code B ref 57503); Tue, 06 Sep 2022 08:19:01 +0000 Original-Received: (at 57503) by debbugs.gnu.org; 6 Sep 2022 08:18:14 +0000 Original-Received: from localhost ([127.0.0.1]:49503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVTmg-0005HK-Al for submit@debbugs.gnu.org; Tue, 06 Sep 2022 04:18:14 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:38494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVTmd-0005H6-Q4 for 57503@debbugs.gnu.org; Tue, 06 Sep 2022 04:18:13 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id b5so14234032wrr.5 for <57503@debbugs.gnu.org>; Tue, 06 Sep 2022 01:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=HLcN6e4npMg4y9plhDkEBN5c5PkPiFYJQNjwnTkYgy4=; b=YQ0qb2jmNJ1tff6paJQw+Sm/TvqGiMN65n/9WXeb+IfwIoMyrOi4v+qbG0RP4DDUgL NWgCd9+sZcYc/Zhh24Zz1aX20zl2JnAEqa8dNBQK7+v9al75OJeJ108PiNlOI2O7wzc9 ce07Z+vgJV61OjHXtyB/ojddrjLtWtbKPZlBGOeha73g05Jv0kfK6GhhM4mB8K22Hy14 RuTZfSkiJRyWZQz85RyQVzV3yeyA216Zbovg3e1l3pGHpIF9CrUQ9HByGSzltLKb84HA 23Uc/msjtPPR2QUKnj6UMxEIPtc6JwS7COGD2z5fXVkZLI/yfU2kNBHcNriUKMzgG5dg 9Irw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=HLcN6e4npMg4y9plhDkEBN5c5PkPiFYJQNjwnTkYgy4=; b=Z2pY5Yi4O9dPakszeaUhoH994kmGAjqdV+pX7zIuFaKoONFQ0uWMHVhADUUZABGsth XY+6i1irk5OpybZduVrAmn+zfCxv65uzNLvRiHfbaQFbhCQQCVO9btB3XlKglSx0jbte jpSJgys5COP1VLNfY9ipapR6Y/g8nubLwrVh8UDNCGqBdPfGt7NV6HFcihMJ0bNBm3zM jIVRj1yeTsTbW5J6g3DvqhhWiKcVuTRuf0k3E10kAwx521w3QBstmJRConAV5NkIkuRr JxveHrg4isVVjxwxo/k75fcldbDLz/iflkqpV49vspyA6qjpVm2s/5sOqcm36ep+jcBn it+A== X-Gm-Message-State: ACgBeo3eR8cOmxF+T1RaU1cDOmU13+pLXfNdCGma5sXxzFhZLAhlgR6d 3bo2XT5AirEqQrBWcdf63tw= X-Google-Smtp-Source: AA6agR5waHJXMMzhvoepg+k6TVQkCeHECjGoMJ0SsCRDrd3ZaVzXOqMzxjhTfpJTc5xe7aFepsp5Jw== X-Received: by 2002:a5d:4e88:0:b0:228:c8ed:2af8 with SMTP id e8-20020a5d4e88000000b00228c8ed2af8mr3138730wru.412.1662452285716; Tue, 06 Sep 2022 01:18:05 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:f116:dbc2:98c7:dbf1]) by smtp.gmail.com with ESMTPSA id f6-20020adff586000000b00228c375d81bsm4276581wro.2.2022.09.06.01.18.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 01:18:04 -0700 (PDT) In-Reply-To: <87edwp1w2z.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 05 Sep 2022 21:04:52 +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:241622 Archived-At: >>>>> On Mon, 05 Sep 2022 21:04:52 +0200, Lars Ingebrigtsen said: >> Of course one use case that breaks is to do >> emacs-29-> emacs-28, *delete* some packages, and then go back to >> emacs-29, which will pick up the old multi-session value. >> >> I guess we could change emacs-29 to refresh the multi-session value >> every time you run `list-packages'. Lars> Hm. Or... refresh the value if the .emacs.d/elpa directory has fresher Lars> contents than the multisession variable, but I don't know whether that's Lars> faster. How do we define 'fresher'? 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. Robert --