Fix: (org-ql-predicates) Use eval-and-compile

This is technically correct, even though package.el might obscure the
problem by causing the file to be loaded before it is compiled.
This commit is contained in:
Adam Porter 2020-04-07 12:05:24 -05:00
parent ab5e9aa911
commit 81673fc7b5

View file

@ -123,10 +123,11 @@ tick, and another hash table keyed on buffer position, whose
values are alists in which the key is a function and the value is
the value returned by it at that node.")
(defvar org-ql-predicates
(eval-and-compile
(defvar org-ql-predicates
(list (list :name 'org-back-to-heading :fn (symbol-function 'org-back-to-heading)))
"Plist of predicates, their corresponding functions, and their docstrings.
This list should not contain any duplicates.")
This list should not contain any duplicates."))
;;;; Customization