From fbff8720b0f30a1f869af5d26347236f35ee2157 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Fri, 3 Jan 2020 05:47:00 -0600 Subject: [PATCH] Tidy: Habit preamble No need for rx-to-string, because it's static. --- org-ql.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/org-ql.el b/org-ql.el index 3f6a3eb..9f7d939 100644 --- a/org-ql.el +++ b/org-ql.el @@ -676,9 +676,7 @@ replace the clause with a preamble." ;; Return nil, don't test the predicate. nil) (`(habit) - ;; TODO: Move regexp to const. - (setq org-ql-preamble (rx-to-string `(seq bol (0+ space) ":STYLE:" (1+ space) - "habit" (0+ space) eol))) + (setq org-ql-preamble (rx bol (0+ space) ":STYLE:" (1+ space) "habit" (0+ space) eol)) nil) ;; Heading text.