From 83cc00a27d7e765df6faad2be7ebf5531d1a250a Mon Sep 17 00:00:00 2001 From: Caleb Chase Date: Thu, 23 Jun 2022 15:51:38 -0500 Subject: [PATCH] Fix: rx nil symbol in heading preamble Use empty string instead of nil as fallback for "h:". --- org-ql.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-ql.el b/org-ql.el index 52c9b72..8825a86 100644 --- a/org-ql.el +++ b/org-ql.el @@ -1410,7 +1410,7 @@ Matching is done case-insensitively." ;; Multiple strings: use preamble to match against first ;; string, then let the predicate match the rest. (list :regexp (rx-to-string `(seq bol (1+ "*") (1+ blank) (0+ nonl) - ,(car strings)) + ,(or (car strings) "")) 'no-group) :case-fold t :query query))) ;; TODO: In Org 9.2+, `org-get-heading' takes 2 more arguments.