From fec3cae7680e1a6dcc36db922833fa9cb8552f08 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Tue, 16 Jun 2020 13:09:10 +0800 Subject: [PATCH] Fix predicate parsing in helm-org-ql --- org-ql.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org-ql.el b/org-ql.el index 43e5237..92d4382 100644 --- a/org-ql.el +++ b/org-ql.el @@ -1708,8 +1708,8 @@ Multiple predicates are combined with BOOLEAN." (and predicate-without-args `(pred -- (list (intern pred)))) (and plain-string `(s -- (list 'regexp s))))) (plain-string (or quoted-arg unquoted-arg)) - (predicate-with-args (substring predicate) ":" args) - (predicate-without-args (substring predicate) ":") + (predicate-with-args (and (substring predicate) ":" args)) + (predicate-without-args (and (substring predicate) ":")) (predicate (or ,@predicates)) (args (list (+ (and (or keyword-arg quoted-arg unquoted-arg) (opt separator))))) (keyword-arg (and keyword "=" `(kw -- (intern (concat ":" kw)))))