Subject: bug#37916: GNUS: wrong item selected in gnus-thread-hide-subtree customization

From: Sergey Organov <[email-masked]>
Date: Fri, 25 Oct 2019 16:12:19 +0300

Lars Ingebrigtsen <[email-masked]> writes:

> Sergey Organov <[email-masked]> writes:
>
>> The "Non-nil" defcustom item is selected in customization buffer when
>> actual value of the gnus-thread-hide-subtree is 'nil.
>
> Hm...  'nil and nil are the same.
>
> [...]
>
>> -  :type '(radio (sexp :format "Non-nil\n"
>> +  :type '(radio (const nil)
>> +		(sexp :format "Non-nil\n"
>>  		      :match (lambda (widget value)
>>  			       (not (or (consp value) (functionp value))))
>>  		      :value t)
>> -		(const nil)
>
> Oh, I see.  I think the problem is that that :match is just wrong.
> Changing the order of the values (as this patch does) also makes the
> problem go away, but I think the right fix here is to fix the :match.

Yes, I also thought it is, but took kludgy way as I'm not familiar
with the :math specifications.

Thanks for fixing it the right way!

-- Sergey