GNU bug report logs -
#64347
30.0.50; Some customize faces shown as edited with -Q
Previous Next
Reported by: Stephen Berman <stephen.berman <at> gmx.net>
Date: Thu, 29 Jun 2023 10:16:01 UTC
Severity: normal
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #44 received at 64347 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Date: Sun, 9 Jul 2023 20:12:38 -0300
>> Cc: 64347 <at> debbugs.gnu.org, stephen.berman <at> gmx.net
>> From: Mauro Aranda <maurooaranda <at> gmail.com>
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> > OK, but why does it have to do that on the original value? It could
>> > do that on a copy that serves for the display and editing, in which
>> > case the original value could be left intact if the user didn't
change
>> > it or did change, but didn't click Apply. (If the user does modify
>> > the original value, then any conversions are okay, since the variable
>> > is really "edited".)
>>
>> I think my description was inaccurate, because it seemed to imply that
>> it is a destructive operation. It is not, it leaves the original value
>> intact.
>>
>> But when deciding to set a state, Custom always consults the spec built
>> from the data the face Widget has.
>
> Can we change this last aspect, so that the state is set using the
> original spec if the setting was not changed by the user?
OK, here's a patch for doing that. It seems to me that after creating
the widget, the only reason to use the value that's represented in the
widget is if we loaded the spec from the :shown-value property (meaning
we are redrawing the widget and we want to keep a spec that was already
in the widget)
[0001-Pass-original-spec-just-after-creating-the-face-widg.patch (text/x-patch, attachment)]
This bug report was last modified 1 year and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.