Lars Ingebrigtsen <
larsi@gnus.org> writes:
> Mauro Aranda <
maurooaranda@gmail.com> writes:
>
>> I can reproduce this bug in Emacs 26.3. On current master, the bug manifests
>> differently: we don't get the State buttons, but we do get the message:
>> Symbol's function definition is void: nil
>>
>> The difference lies in `custom-variable-modified-p' bugging out before we draw
>> the bogus State buttons for all options, because it is not supposed to handle
>> hidden widgets.
>>
>> The bug is that Custom-save recalculates the state and redraws all widgets,
>> even the hidden ones. I propose the attached patch, that changes
>> Custom-save to only act on edited widgets in the buffer.
>
> Thanks; applied to Emacs 28.1.
Thank you!