From 9deec36458531fe0ba85a05645f070a7491fb283 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Sat, 8 Jun 2019 23:31:24 -0500 Subject: [PATCH] Fix: Require org-habit It would be optimal to avoid requiring it, but not worth the trouble. --- org-ql.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/org-ql.el b/org-ql.el index 8c4ac7c..9212d0c 100644 --- a/org-ql.el +++ b/org-ql.el @@ -19,6 +19,7 @@ (require 'cl-lib) (require 'org) +(require 'org-habit) (require 'seq) (require 'dash) @@ -252,9 +253,7 @@ Or, when possible, fix the problem." (cl-case symbol ('done (unless org-done-keywords ;; NOTE: This check needs to be done from within the Org buffer being checked. - (error "Variable `org-done-keywords' is nil. Are you running this from an Org buffer?"))) - ('habit (unless (featurep 'org-habit) - (require 'org-habit)))))) + (error "Variable `org-done-keywords' is nil. Are you running this from an Org buffer?")))))) (cl-loop for elem in form if (consp elem) do (progn