Fix: rx nil symbol in heading preamble

Use empty string instead of nil as fallback for "h:".
This commit is contained in:
Caleb Chase 2022-06-23 15:51:38 -05:00
parent bacdacb1b2
commit 83cc00a27d

View file

@ -1410,7 +1410,7 @@ Matching is done case-insensitively."
;; Multiple strings: use preamble to match against first ;; Multiple strings: use preamble to match against first
;; string, then let the predicate match the rest. ;; string, then let the predicate match the rest.
(list :regexp (rx-to-string `(seq bol (1+ "*") (1+ blank) (0+ nonl) (list :regexp (rx-to-string `(seq bol (1+ "*") (1+ blank) (0+ nonl)
,(car strings)) ,(or (car strings) ""))
'no-group) 'no-group)
:case-fold t :query query))) :case-fold t :query query)))
;; TODO: In Org 9.2+, `org-get-heading' takes 2 more arguments. ;; TODO: In Org 9.2+, `org-get-heading' takes 2 more arguments.