From a63210a3368e9069a1a65422e56061d13d0386aa Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 10 Jan 2020 18:23:11 +0100 Subject: [PATCH] Update criteria for stuck projects Previously, a project was not stuck if any subtask was tagged NOP (no-project). However, this led constellations like the following to be hidden from the stuck project list: * Test :NOP: ** TestTest *** TestTestTest :NOP: In this case, the NOP at TestTestTest would result in hiding TestTest, which, however, does not have any more things to do and should thus be marked stuck. The new configuration will check NOP only at the top headline, and not at any other sub-headlines. For this, a property search TAGS={NOP} is necessary, because otherwise tag inheritance would result in wrong false negatives. --- init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 06e2cf3..446e82c 100644 --- a/init.el +++ b/init.el @@ -1052,9 +1052,9 @@ in the main agenda view." '(:link t :maxlevel 4 :compact t :narrow 60 :fileskip0 t) org-stuck-projects - '("-DATE-HOLD-REGULAR-HOLD-NOTE+TODO=\"\"" + '("+TODO=\"\"-DATE-REGULAR-HOLD-NOTE-TAGS={NOP}" ("CONT" "TODO" "READ" "WAIT" "GOTO" "DELG") - ("NOP") + () "") org-agenda-prefix-format