From 97aa47ef67a52de7f1c4b1a825f8558f34c1fcee Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 27 Mar 2022 14:56:03 -0400 Subject: [PATCH] FIX typo --- local/lib/org-x/org-x-dag.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/local/lib/org-x/org-x-dag.el b/local/lib/org-x/org-x-dag.el index b9a88ca..1e97c29 100644 --- a/local/lib/org-x/org-x-dag.el +++ b/local/lib/org-x/org-x-dag.el @@ -1606,6 +1606,9 @@ used for optimization." (-when-let (p (alist-get org-x-prop-parent-type props nil nil #'equal)) (equal p org-x-prop-parent-type-iterator)))) +;; TODO these next two could be made more efficient by cutting out the +;; earlystop form and returning error in the rank form (the trans form is +;; still needed in case there is only one child) (defun org-x-dag-bs-action-subiter-complete-fold (child-bss type-name comp-key) (declare (indent 1)) (org-x-dag-bs-fold-children child-bss `(,comp-key ,it-comptime) @@ -1668,7 +1671,7 @@ used for optimization." (org-x-dag-bs :error "Sub-iterators with children cannot be scheduled")) ((and dead child-bss) (org-x-dag-bs :error "Sub-iterators with children cannot be deadlined")) - ((not (xor sched dead)) + ((and (not child-bss) (not (xor sched dead))) (org-x-dag-bs :error "Sub-iterators must either be deadlined or scheduled")) ((org-x-dag-node-data-is-iterator-p node-data) (org-x-dag-bs :error "Iterators cannot be nested"))