From: Robert Pluim <rpluim@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Joost Kremers <joostkremers@fastmail.fm>,
57503@debbugs.gnu.org, Philip Kaludercic <philipk@posteo.net>,
Stefan Kangas <stefankangas@gmail.com>
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 [thread overview]
Message-ID: <877d2iff15.fsf@gmail.com> (raw)
In-Reply-To: <871qsrbedc.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 04 Sep 2022 12:52:47 +0200")
>>>>> On Sun, 04 Sep 2022 12:52:47 +0200, Lars Ingebrigtsen <larsi@gnus.org> said:
Lars> Stefan Kangas <stefankangas@gmail.com> writes:
>> - Keep the old defcustom, and add a new multisession variable.
>>
>> - If the old variable exists, use it. Otherwise the new one.
>>
>> - 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.
>>
>> - 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 user
Lars> intervention, but in addition it'll force you into one usage pattern 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ʼm not convinced thatʼs necessary. I just did the following:
1. emacs-29+my patch, install some packages => no package-selected-packages
setting
2. emacs-28, run `package-list-packagesʼ => 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ʼ, 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ʼ for now
--
next prev parent reply other threads:[~2022-09-05 7:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-31 12:43 bug#57503: 28.1.91; package-selected-packages should not be saved to custom-file Joost Kremers
2022-09-02 13:11 ` Philip Kaludercic
2022-09-02 13:17 ` Robert Pluim
2022-09-02 13:17 ` Lars Ingebrigtsen
2022-09-02 14:33 ` Robert Pluim
2022-09-03 9:52 ` Lars Ingebrigtsen
2022-09-03 10:17 ` Philip Kaludercic
2022-09-03 12:25 ` Lars Ingebrigtsen
2022-09-03 15:32 ` Stefan Kangas
2022-09-04 10:52 ` Lars Ingebrigtsen
2022-09-05 7:37 ` Robert Pluim [this message]
2022-09-05 11:16 ` Lars Ingebrigtsen
2022-09-05 11:51 ` Robert Pluim
2022-09-05 13:14 ` Robert Pluim
2022-09-05 19:04 ` Lars Ingebrigtsen
2022-09-06 8:18 ` Robert Pluim
2022-09-06 10:34 ` Lars Ingebrigtsen
2022-09-06 13:49 ` Robert Pluim
2022-09-06 14:30 ` Robert Pluim
2022-09-06 16:45 ` jakanakaevangeli
2022-09-07 0:09 ` Stefan Kangas
2022-09-07 5:38 ` jakanakaevangeli
2022-09-07 9:55 ` Robert Pluim
2022-09-07 12:39 ` Lars Ingebrigtsen
2022-09-03 15:33 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877d2iff15.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=57503@debbugs.gnu.org \
--cc=joostkremers@fastmail.fm \
--cc=larsi@gnus.org \
--cc=philipk@posteo.net \
--cc=stefankangas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).