emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] depending TODOs, scheduling following TODOs automatically


From: John Wiegley
Subject: Re: [Orgmode] depending TODOs, scheduling following TODOs automatically
Date: Mon, 08 Oct 2007 23:03:39 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin)

Bastien <address@hidden> writes:

> We could use the TODO keywords instead of "SEND" as a way to say that
> reaching a particular todo state should trigger some kind of action.

How about just having generalized Lisp triggers:

  :PROPERTIES:
  :TRIGGER: (lambda (previous new)
               (if (string= (assoc "TODO" new) "DONE")
                   (org-find-and-schedule "regexp matching task" date)))
  :END:

In this example, previous and new are associative lists containing all of the
state information applicable to an entry.

This kind of mechanism would allow Carsten to come up with a small library of
org-mode Lisp functions for programmatically manipulating tasks simply by
specifying a regular expression, or a relative offset, to "locate" them.

I would far prefer this to a specialized syntax, which in the end would
require so complexity as to become a domain-specific language in itself.

John




reply via email to

[Prev in Thread] Current Thread [Next in Thread]