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: Mon, 05 Sep 2022 09:37:10 +0200 Message-ID: <877d2iff15.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> 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="32266"; 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 Mon Sep 05 09:38:21 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 1oV6gX-0008Ed-HG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 09:38:21 +0200 Original-Received: from localhost ([::1]:45408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oV6gW-00008y-0l for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 03:38:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV6gE-00008p-B4 for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 03:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oV6gE-0005Um-33 for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 03:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oV6gD-0001pi-VW for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 03:38: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: Mon, 05 Sep 2022 07:38: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.16623634416995 (code B ref 57503); Mon, 05 Sep 2022 07:38:01 +0000 Original-Received: (at 57503) by debbugs.gnu.org; 5 Sep 2022 07:37:21 +0000 Original-Received: from localhost ([127.0.0.1]:46324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oV6fZ-0001ol-Cy for submit@debbugs.gnu.org; Mon, 05 Sep 2022 03:37:21 -0400 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:34638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oV6fW-0001oW-Fp for 57503@debbugs.gnu.org; Mon, 05 Sep 2022 03:37:20 -0400 Original-Received: by mail-wr1-f44.google.com with SMTP id e13so10135884wrm.1 for <57503@debbugs.gnu.org>; Mon, 05 Sep 2022 00:37:18 -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=LapEDCfgbL0mKSJeHoNrHNmu7pAFDcorSDdTAMOcV8I=; b=RJyVvb1Kkr5l9gSrTsbhQbOnMm6YbqAwy/Uu8fQjpv1ip2I0pmIJ7slnn87nM4wmK6 n7Ehv+KDGdfIS+y5XXpz5/xrm+RHC4yVI7ufWHS2SPhZxA2NzbV57hVYC9yCrxH6IPRL 3JV4jc2Q73ZYH1ZfoJWAKxpLxZWNIJ9nKGhxKSck1QSakUSa2fbjTiR3aola4NG8PIHy tenWPMGLKU4km7da0XpkD/9tf/6zpiZc0wszyi97fWVXhq0nj4C0Db70lKUdwd5akBhM k5oK+xyyfSMg37/HeH43GEvg+wjD8h+h6iSBwQsVnv3RRLJkq/GCPGEFNLT1qiQHQHFE x64w== 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=LapEDCfgbL0mKSJeHoNrHNmu7pAFDcorSDdTAMOcV8I=; b=aUnhxGpjqV3Joa9egWQ699ZW8h0vUbNbwMTO8rRM8j/KGueGKonbNcGwH5pM+23OcN /EiQpWBBF6RWO2zmZKyLmenyQWOzIQAQx297Ll74LuzWANUXKs8ICZKHLE56ZBoykJ6v swCfVNX3kX/FzWxVX64sUHJe0AbNoxbFzsr9lOuOYdO51/griaAvdy4tgKatwwuegCHm I4VevTxu2UsXImW7Qv2B7BCfpnrjltrzjEUXeM3O1Wg0t1wtfxvxdaKvuuNPnGOLmpWm VYn4HhzA4wCEgfLG8J9yEjiTTltuVQ8F8SgXgvXQOs6dETfxaL0RlENMTyay46CbOL37 qYOw== X-Gm-Message-State: ACgBeo3nmWrvig3o6as/IKy2QA5RwnmjdWx1gjLQCQ+63GFnGqwLz5Zo PMuc2caA56tMpeALsiIPjy4= X-Google-Smtp-Source: AA6agR4WVBgsY+afEYsLqTxKyk/YFBsMaWSqvcfvXNOitHTfXohtXSQWk7mH34HswZtv9zbpPHGSeQ== X-Received: by 2002:a5d:64a9:0:b0:225:66ef:be9d with SMTP id m9-20020a5d64a9000000b0022566efbe9dmr23461152wrp.604.1662363432213; Mon, 05 Sep 2022 00:37:12 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:d449:3613:7ca5:e93f]) by smtp.gmail.com with ESMTPSA id bk16-20020a0560001d9000b002258235bda3sm8030923wrb.61.2022.09.05.00.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 00:37:11 -0700 (PDT) In-Reply-To: <871qsrbedc.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 04 Sep 2022 12:52:47 +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:241534 Archived-At: >>>>> On Sun, 04 Sep 2022 12:52:47 +0200, Lars Ingebrigtsen said: Lars> Stefan Kangas writes: >> - Keep the old defcustom, and add a new multisession variable. >>=20 >> - If the old variable exists, use it. Otherwise the new one. >>=20 >> - Add a new command that "upgrades" the variable into a multisession >> variable. Make it say that it will break things on Emacs < 29. Don= 't >> run it automatically. >>=20 >> - In Emacs version N (e.g., 5 major versions from now?), upgrade any >> user automatically, without prompting, and make the defcustom >> obsolete. Lars> Hm... I think this has the disadvantage that it both requires us= er Lars> intervention, but in addition it'll force you into one usage patt= ern or Lars> another at some point. Lars> I think perhaps Stefan M's suggestion of adding a new user option= to Lars> control the behaviour here is the only practical way forward. I=CA=BCm not convinced that=CA=BCs necessary. I just did the following: 1. emacs-29+my patch, install some packages =3D> no package-selected-packag= es setting 2. emacs-28, run `package-list-packages=CA=BC =3D> package-selected-packages is populated with packages set in step 1, and saved in .emacs 3. emacs-28, install some packages 4. emacs-29+my-patch, `package-list-packages=CA=BC, error because it now has a setting for package-selected-packages, which means we need to call the multisession variable something different. I fixed that, and the packages installed in step 3 show up [1] So for the small number of people going backwards from emacs-29, the problem fixes itself, and we can document that, and for people going forwards to emacs-29 and staying there is no manual intervention needed. Robert Footnotes: [1] We can now argue about what to call that variable. I went for `package-selected-packages-ms=CA=BC for now --=20