Fix agenda display when headlines are missing
authorBernt Hansen <bernt@norang.ca>
Wed, 13 Apr 2011 17:12:10 +0000 (17:12 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 15 Apr 2011 11:55:01 +0000 (13:55 +0200)
commit383cb5dcaa2f645de1d4574b0074fa6df84839bc
tree4310042eefd3d83f1d9ddb73113cec18678b8c20
parent1bc0623be2da3da9789d526efb3b24f6d295fbbc
Fix agenda display when headlines are missing

* lisp/org-agenda.el (org-agenda-get-timestamps): Fix agenda display when headlines are missing

The following entry breaks the agenda display.

,----
| ****
|         :PROPERTIES:
|         :DateCreated: <2011-04-13 Mi 10:00>
|         :END:
|
| [[gnus:nntp%2BGwene:gwene.org.emacsen.planet][gnus:nntp+Gwene:gwene.org.emacsen.planet]]
`----

Provide the empty string as the headline if the search for the
headline returns nil.  org-format-agenda-items requires a string for
the headline parameter.
lisp/org-agenda.el