]> git.eshelyaron.com Git - emacs.git/commitdiff
Back out part of commit db5e84af202
authorEric Abrahamsen <eric@ericabrahamsen.net>
Mon, 19 Feb 2024 02:08:51 +0000 (18:08 -0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 28 Feb 2024 17:35:53 +0000 (18:35 +0100)
* lisp/gnus/gnus-agent.el (gnus-category-make-function-1): This code is
untested and was not meant to be part of the earlier commit.

(cherry picked from commit f6743099cc907f1f2847f028ff8f3712288c559f)

lisp/gnus/gnus-agent.el

index 0928b1797877f56885f49ec064fe592dd9c50ce0..1726b806913b7c221c1903bbcb972a0017f09c36 100644 (file)
@@ -2920,9 +2920,8 @@ The following commands are available:
    ;; Functions are just returned as is.
    ((or (symbolp predicate)
        (functionp predicate))
-    (let ((fun (or (cdr (assq predicate gnus-category-predicate-alist))
-                  predicate)))
-      (if (symbolp fun) `(,fun) `(funcall ',fun))))
+    `(,(or (cdr (assq predicate gnus-category-predicate-alist))
+          predicate)))
    ;; More complex predicate.
    ((consp predicate)
     `(,(cond