From 81673fc7b599347e6fec0755caadb69fb5a2e430 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Tue, 7 Apr 2020 12:05:24 -0500 Subject: [PATCH] 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. --- org-ql.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/org-ql.el b/org-ql.el index a03f6d6..43e5237 100644 --- a/org-ql.el +++ b/org-ql.el @@ -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 - (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.") +(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.")) ;;;; Customization