org-depend: Fix blocking logic
commit2f9d0956176bb4e155c6d51a94f745c30f82f556
authorCarsten Dominik <carsten.dominik@gmail.com>
Wed, 11 Aug 2010 09:16:11 +0000 (11 11:16 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 11 Aug 2010 09:16:11 +0000 (11 11:16 +0200)
tree27e846a83b2b7989985699a8a0e1d8b78cfc818e
parent0633c6aa094ac77df1981e21a1cd863f1138b01f
org-depend: Fix blocking logic

* contrib/lisp/org-depend.el (org-depend-block-todo): Fix blocking logic.

Paul Sexton writes:

> The value returned by org-depend-block-todo determines whether an item
> is considered "blocked", and thus whether it is shown dimmed (because
> this function is added to org-blocker-hook).
>
> o-d-b-t only returns true in a very limited set of conditions, so very
> often items which should show up as blocked, do not. To be honest I
> don't remember the exact details, but it did not work before I applied
> the patch, and has worked correctly ever since.
contrib/lisp/org-depend.el