org-agenda: Do not block non-TODO entries
commit570b1935e7db9913a2eb9084b6f1adc0d07a36cc
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 6 Aug 2015 14:56:41 +0000 (6 16:56 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 6 Aug 2015 15:56:40 +0000 (6 17:56 +0200)
tree07e775803780c57b9ed453d8992927f5e77283da
parentb1d3a904f11cc32db61d0ae7323f009b31064bed
org-agenda: Do not block non-TODO entries

* lisp/org-agenda.el (org-agenda-dim-blocked-tasks): Do not check if an
  entry can be blocked when it doesn't have any TODO keyword.

* lisp/org.el (org-entry-blocked-p): Make sure entry is really an open
  task before even considering it as a blocked task.  Small refactoring.

* testing/lisp/test-org.el (test-org/entry-properties): Update tests.
(test-org/entry-blocked-p): New test.

Reported-by: Bingo UV <right.ho@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/99544>
lisp/org-agenda.el
lisp/org.el
testing/lisp/test-org.el