branch: master commit 3937f31f64de63ff20150febafcd7980886745c2 Author: Ian D <du...@gnu.org> Commit: Ian D <du...@gnu.org>
Fixed headings condition * org-bat.el (org-bat-condition/headings): Check for a non-empty set of headings rather than an empty one. --- org-bat.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-bat.el b/org-bat.el index ef439bd..e3ca976 100644 --- a/org-bat.el +++ b/org-bat.el @@ -377,7 +377,7 @@ IDS are all UUIDs as understood by `org-id-find'." ;; Block if there are headings (defun org-bat-condition/headings (neg) - (let ((condition (seq-empty-p (org-map-entries (lambda nil t))))) + (let ((condition (not (seq-empty-p (org-map-entries (lambda nil t)))))) (when (org-bat--xor condition neg) (buffer-name))))