Yes, I agree. This has been requested by other people too. This variable should be saved in its own file (at a configurable location), like many other cases of persistent data in Emacs.
Would someone like to do this? I won't have the time for it ATM.
On 17 Feb 2016 2:10 am, "John Wiegley" <jwiegley@gmail.com> wrote:
>
> >>>>> alex <current@protonmail.com> writes:
>
> > Hello, the 25.0.91 pretest version seems great so far. I like the dependency
> > tracking in package.el.
>
> > Unfortunately whenever I install/update packages, it saves
> > `package-selected-packages' to my customize file. This is a bit annoying as I
> > share my config with git across multiple machines that have different packages
> > installed.
>
> > While I could alter the definition of `package--save-selected-packages'
> > myself, I'd think it would be nicer if there was a user option to toggle
> > this behaviour. The default initialization of `all non-dependencies' seems
> > to be what I'd always want anyway.
>
> This sounds like a reasonable request to me; and I sympathize with emitting
> such generated data to a potentially user-controlled file. Maybe this data
> could go into another file entirely?
>
> --
> John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
> http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2