GNU bug report logs -
#38812
28.0.50; Custom: Problem with reverting some session's customizations
Previous Next
Reported by: Mauro Aranda <maurooaranda <at> gmail.com>
Date: Mon, 30 Dec 2019 14:12:02 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #10 received at control <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tags 38812 patch
thanks
> This bug affects the customizations that happen before customizing
> custom-enabled-themes, that's why in the init file is necessary to have
one
> customization before and one after, to be able to compare the results.
> Since custom maintains the arguments to custom-set-variables in alphabetic
> order, all variables that would be sorted before custom-enabled-themes
> are affected by this bug.
When custom-enabled-themes is customized, its set function enable the
themes. When that happens, custom recalculates the value of the
variables, according to the enabled themes, with
custom-theme-recalc-variable. For variables that already have a
theme-value property (i.e., the variables that were customized with
custom-set-variables before customizing custom-enabled-themes),
custom-theme-recalc-variable ends up putting in the 'saved-value
property the same cons cell that is in the 'theme-value property.
Customizing in a session changes the 'theme-value property of the
customized variable, and the above has the effect of changing the
'saved-value property as well.
A possible fix is to make custom-variable-theme-value return a new list.
I attach a patch that does that.
Best regards,
Mauro.
[Message part 2 (text/html, inline)]
[0001-Preserve-the-saved-value-property-when-doing-session.patch (text/x-patch, attachment)]
This bug report was last modified 5 years and 198 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.