From 39cb696fc49693a55000a818fefc5934b946673b Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Wed, 29 Jun 2022 16:51:19 +0200 Subject: [PATCH] Allow NOTEs as refile-targets again This partially reverts cff8720a4459b1a38a02fb7500966d9906b45a6d, but keeps the doc-string. Rationale: TOPICs may contain notes which should be reviewd regularly. Those TOPICs should also be tagged with NOTE but could (and should) in addition contain sub-items about concrete tasks. In this case refiling to a NOTE should be allowed. Maybe limiting refiling to NOTE:TOPIC combinations would be more strict here, but I think this complexity is not (yet) worth it. --- site-lisp/db-org.el | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 82b0d28..91ec699 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -298,15 +298,7 @@ In ~%s~: (and ;; Exclude DONE state tasks from refile targets (from bh) (not (member (nth 2 (org-heading-components)) - org-done-keywords)) - ;; Exclude NOTE entries in `db/org-default-org-file', as those are project - ;; notes that should not have proper tasks as children (use links to connect - ;; those tasks to the project notes instead) - (not (and (member "NOTE" (org-get-tags)) - (not (null (buffer-file-name))) - (not (null db/org-default-org-file)) - (file-equal-p (buffer-file-name) - db/org-default-org-file))))) + org-done-keywords)))) ;;; Reset checklists