GNU bug report logs -
#37916
GNUS: wrong item selected in gnus-thread-hide-subtree customization
Previous Next
Reported by: Sergey Organov <sorganov <at> gmail.com>
Date: Fri, 25 Oct 2019 07:14:02 UTC
Severity: normal
Tags: fixed
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Sergey Organov <sorganov <at> gmail.com> 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.
So I've installed the following patch instead:
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index b5d744843f..f21bc7584e 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -334,7 +334,7 @@ gnus-thread-hide-subtree
:group 'gnus-thread
:type '(radio (sexp :format "Non-nil\n"
:match (lambda (widget value)
- (not (or (consp value) (functionp value))))
+ (and value (not (functionp value))))
:value t)
(const nil)
(sexp :tag "Predicate specifier")))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 210 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.