org-agenda: Handle case of heading w/ date but no keyword
commit1749db14fbe198d14bbd7f987042640c3fd626df
authorKarl Fogel <kfogel@red-bean.com>
Thu, 1 Mar 2012 00:45:05 +0000 (1 00:45 +0000)
committerDavid Maus <dmaus@ictsoc.de>
Sun, 4 Mar 2012 19:13:05 +0000 (4 20:13 +0100)
tree97368bb10efbacb74300bbd6be4bd72131af1d6f
parentb549c6006511150a93bb97a539d400ab3ade4b75
org-agenda: Handle case of heading w/ date but no keyword

* lisp/org-agenda.el (org-agenda-highlight-todo): Handle the case of a
  heading that has a date but no todo keyword.

This is a fix for the args-out-of-range bug discussed in these threads:

  http://thread.gmane.org/gmane.emacs.orgmode/52621
  http://thread.gmane.org/gmane.emacs.orgmode/52793
  http://thread.gmane.org/gmane.emacs.orgmode/52786
  http://thread.gmane.org/gmane.emacs.orgmode/52810

The discussions involved Ilya Shlyakhter, James Atwood, Nick Dokos,
and myself, and the subject headers are:

  bug report: agenda timeline crashes
  Bug report: weekly agenda and blank, timestamped headers
  org-agenda-list (from git) giving "args-out-of-range error"

TINYCHANGE
lisp/org-agenda.el