From b584f6ed9cb03f47f4ae5bdc94ef7b9b3e43def5 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Fri, 22 Apr 2022 19:02:47 -0400 Subject: [PATCH] FIX use filetags when no non-node parents available --- local/lib/org-x/org-x-dag.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/local/lib/org-x/org-x-dag.el b/local/lib/org-x/org-x-dag.el index f5bef63..aa9052f 100644 --- a/local/lib/org-x/org-x-dag.el +++ b/local/lib/org-x/org-x-dag.el @@ -524,9 +524,8 @@ used for optimization." this-file-links)))) (when this-tags (setq this-tags (split-string this-tags ":"))) - (when (and (not node-stack) bare-stack) - (setq this-tags (->> (car bare-stack) - (nth 1) + (unless node-stack + (setq this-tags (->> (or (nth 1 (car bare-stack)) org-file-tags) (append this-tags)))) (->> (list :point this-point :buffer-parent this-buffer-parent