From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sergey Organov Newsgroups: gmane.emacs.bugs Subject: bug#37916: GNUS: wrong item selected in gnus-thread-hide-subtree customization Date: Fri, 25 Oct 2019 16:12:19 +0300 Message-ID: <87zhhp3r64.fsf@osv.gnss.ru> References: <87mudp9u1k.fsf@osv.gnss.ru> <87a79pds77.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="17013"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cc: 37916@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 25 15:13:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iNzOz-0004IT-6p for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 15:13:13 +0200 Original-Received: from localhost ([::1]:59762 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNzOw-00040I-LO for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Oct 2019 09:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58632) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNzOp-0003qk-91 for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 09:13:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNzOo-0000x2-7L for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 09:13:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56875) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNzOo-0000wu-0s for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 09:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iNzOn-0004N1-Mj for bug-gnu-emacs@gnu.org; Fri, 25 Oct 2019 09:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sergey Organov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Oct 2019 13:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37916 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 37916-submit@debbugs.gnu.org id=B37916.157200914716757 (code B ref 37916); Fri, 25 Oct 2019 13:13:01 +0000 Original-Received: (at 37916) by debbugs.gnu.org; 25 Oct 2019 13:12:27 +0000 Original-Received: from localhost ([127.0.0.1]:37463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNzOE-0004MD-VX for submit@debbugs.gnu.org; Fri, 25 Oct 2019 09:12:27 -0400 Original-Received: from mail.javad.com ([54.86.164.124]:59469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iNzO9-0004M2-TT for 37916@debbugs.gnu.org; Fri, 25 Oct 2019 09:12:25 -0400 Original-Received: from osv (unknown [89.175.180.246]) by mail.javad.com (Postfix) with ESMTPSA id 31AB83EA59; Fri, 25 Oct 2019 13:12:21 +0000 (UTC) Authentication-Results: mail.javad.com; dkim=pass (1024-bit key; unprotected) header.d=javad.com header.i=@javad.com header.b=drE8b/9N; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javad.com; s=default; t=1572009141; bh=IwGNZ4nUI6M4By+3MMLtmxA5E4I9vpARQgdQRIapG40=; l=877; h=Received:From:To:Subject; b=drE8b/9NnTGsewybNIuQh2Ui1YTMSaWFId5UW9cpnpeIJrtp/c6lZiLzLQgq5KKpp 7IsWZ9tQ95S6jypvdk7zoMMptoECdv1gZUCL8hasQH1zKYlSksFU/dD14rOsVLQcMH HUP2+hjo6BwRYXdhPhFJNJAdpE4QogMgm8PCU2wY= Authentication-Results: ip-172-31-2-110; spf=pass (sender IP is 89.175.180.246) smtp.mailfrom=osv@javad.com smtp.helo=osv Received-SPF: pass (ip-172-31-2-110: connection is authenticated) Original-Received: from osv by osv with local (Exim 4.84_2) (envelope-from ) id 1iNzO7-0000qM-N4; Fri, 25 Oct 2019 16:12:19 +0300 In-Reply-To: <87a79pds77.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 25 Oct 2019 12:39:56 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170160 Archived-At: Lars Ingebrigtsen writes: > Sergey Organov 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