(How) could you use diary expressions for repeated tasks?

Ihor Radchenko <yanta...@posteo.net> writes:

>> I have the Fennel User Group scheduled with `<%%(diary-float t 6 3)>',
>> as it always happens "on the third Saturday of each month at 10:00
>> PST/18:00 UTC", and it works great.
>
> See https://orgmode.org/worg/orgmeetup.html
>
>     Regular dates
>     Monthly, every second Wednesday of the month
>     <%%(diary-float t 3 2)> in Org mode

Say that you want a TODO item for finishing the meetup notes, scheduled after
every recurring meeting. How would you do this?

    ** TODO Finish meeting notes
    SCHEDULED: <%%(diary-float t 3 2)>

doesn't work, since this isn't considered a repeating timestamp (probably
because Org doesn't easily know how the date should move). (org-todo "DONE")
will just set it to DONE.

    SCHEDULED: <%%(diary-float t 3 2) ++1m>

also doesn't make sense, nor do any of the other repeaters: the complex
scheduling behaviour is what the diary sexp is for! "(org) Timestamps", "(org)
Deadlines and Scheduling", and "(org) Repeated tasks" also don't seem to cover
it.

One way I can imagine doing this is setting up an
org-after-todo-state-change-hook, but I wonder if there's another way.

Rens

Reply via email to