Bastien <[EMAIL PROTECTED]> 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


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to