charles@aurox.ch (Charles A. Roelli) writes:
>>From emacs -q (26.0.90):
>
> M-x column-number-mode
> C-x z > Repeat it to turn it back off.
> M-x load-theme RET tango RET > Any theme will do.
>
> Notice that column numbers are turned on again in the mode line. They
> should not be on.
I can reproduce this with latest master.
This was introduced in commit fccf278488785f482c7c50ac0713aa8f60dafbe9.
The issue is that we are pushing the new value to the user theme only if
it is not the saved-value or the standard-value. So if the user ever goes back
to one of those two values (in the recipe, by turning `column-number-mode' off),
then we never store that value in the user theme.
And because we have the wrong value stored, loading a theme steps over
the user preference.
So I think the fix would be to keep the user theme in sync with the
actual value, at any time.