[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: omit some variables from custom-save-variables
From: |
Stefan Monnier |
Subject: |
Re: RFC: omit some variables from custom-save-variables |
Date: |
Fri, 19 Jun 2020 17:26:06 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>>> 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?
Yes, as should be obvious at least in the case where it falls back on
`set-default`.
> 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.
I was thinking compared to the approach I showed.
I'm not favoring either of them, I'm just trying to better understand
the trade-offs.
Stefan