[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: |
Mon, 22 Jun 2020 18:22:38 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
On Fri, 19 Jun 2020 17:26:06 -0400 Stefan Monnier <monnier@iro.umontreal.ca>
wrote:
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?
SM> Yes, as should be obvious at least in the case where it falls back on
`set-default`.
OK, it sounds like a better approach if it requires no core changes. I
proposed the change in https://github.com/jwiegley/use-package/pull/850
and in my testing it behaved correctly.
Ted