[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Hook after handling repeating TODO?
From: |
James Harkins |
Subject: |
[O] Hook after handling repeating TODO? |
Date: |
Wed, 05 Nov 2014 11:08:34 +0800 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/23.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Is there a hook that runs after a TODO state change triggers a repeat?
I have a few weekly tasks that I've set up as habits. These refer to scheduled
lessons. I have the idea that it would be pretty cool to include in the habit
entry a link pointing to the next lesson. When I mark the habit DONE, it
processes the repeat (updates the habit's scheduled time and switches the state
back to TODO). That would be the point to find the next lesson for that group
of students and update the link text. The most reliable way would be to search
for the earliest lesson whose scheduled time is later than the updated
timestamp for the habit.
I did some searching but didn't find a hook that appeared obviously to be
suitable. I suppose a TODO state-change hook might have worked, provided that
the repeating timestamp will be processed before the state change.
Unfortunately, it appears that it goes in the opposite order: in
org-auto-repeat-maybe, (org-todo to-state) occurs at line 13152, well before
processing the new timestamp (13172-13209). So I guess not that one.
Any ideas? Thanks,
hjh
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] Hook after handling repeating TODO?,
James Harkins <=