[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: omit some variables from custom-save-variables

From: Ted Zlatanov
Subject: Re: RFC: omit some variables from custom-save-variables
Date: Fri, 19 Jun 2020 20:24:02 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Fri, 19 Jun 2020 16:14:01 -0400 Stefan Monnier <monnier@iro.umontreal.ca> 

>> The proposal is for use-package to apply the save-exemptions symbol
>> property behind the scenes. This is a new symbol property. 

SM> Hmm... my reflex would have been to make use-package use something like

SM>     (funcall (or (get variable 'custom-set) #'set-default) variable value)

SM> instead of whichever other way it currently uses to set the variable.

Does that omit the variable from the custom.el file? The problem is the
double persistence, both in code and in custom.el.

SM> Could you describe what would be the advantage of introducing a new
SM> symbol property?

Soft migration, no unexpected behavior, everything works like it does today.

SM> [ BTW: whichever way we end up going, I think that it would be better if
SM>   use-package didn't use custom's symbol properties, so we should
SM>   introduce a new function (I suggest to name it
SM>   `customize-set-variable-external` to get the bikeshedding
SM>   rolling ;-). ]

Sure, an API instead of a direct setting. I like the approach and the name.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]