Agenda: Add new todo-unblocked and nottodo-unblocked skip conditions
commitf426dadef0c410b5abded3dd9d6bf1123385f0c8
authorToby S. Cubitt <tsc25@cantab.net>
Sat, 28 Jan 2012 17:26:21 +0000 (28 18:26 +0100)
committerBastien Guerry <bzg@altern.org>
Fri, 20 Apr 2012 10:12:42 +0000 (20 12:12 +0200)
treef87efb64aac2322eba67e515fbedc7aae6512c82
parent37fafb7b9e4e8e1eeb6b8faa76a1621c28970ef5
Agenda: Add new todo-unblocked and nottodo-unblocked skip conditions

* lisp/org-agenda.el (org-agenda-skip-if, org-agenda-skip-if-todo):
Add new todo-unblocked and nottodo-unblocked skip conditions.  These
match as for todo and nottodo, but only for unblocked todo items.

TINYCHANGE

This patch adds two new tests to `org-agenda-skip-if': 'todo-unblocked
and 'nottodo-unblocked.  These match like 'todo and 'nottodo, but only on
unblocked todo items.  This type of test is useful when compiling custom
agenda views containing lists of currently actionable todo items.

Whilst it's possible to code such tests in `org-agenda-custom-commands'
directly (well, Elisp is Turing-complete: you can in principle code
anything!), it's far less convenient than a simple `org-agenda-skip-if'
test which can reuse much of the existing machinery.

Note that the attached patch applies on top of my other "Fix
org-agenda-skip-if bug" patch, though this new feature is independent of
that bug-fix.
lisp/org-agenda.el