From: Lars Ingebrigtsen Date: Fri, 25 Oct 2019 10:41:29 +0000 (+0200) Subject: Fix gnus-thread-hide-subtree defcustom X-Git-Tag: emacs-27.0.90~895^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fcc427f3562e43791ed2ab4370dc2c13e7435849;p=emacs.git Fix gnus-thread-hide-subtree defcustom * lisp/gnus/gnus-sum.el (gnus-thread-hide-subtree): Make the "Non-nil" predicate do what it's supposed to (i.e., return non-nil on non-nil values (excepting predicates)) (bug#37916). --- diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index b5d744843f0..f21bc7584e5 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -334,7 +334,7 @@ If threads are hidden, you have to run the command :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")))