org-agenda: return multiple results when sexp return a string with "; "
commit3e4b139f1d611e0a4310afdc8c1c3c3dd1fbccba
authorJulien Danjou <julien@danjou.info>
Wed, 3 Nov 2010 22:32:18 +0000 (3 22:32 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Thu, 4 Nov 2010 12:05:50 +0000 (4 13:05 +0100)
treec2fd367587f2d784d423b2790db96368dd95c88a
parentaaffdb47322f04469cb075a4796e6b8bf869c855
org-agenda: return multiple results when sexp return a string with "; "

* lisp/org.el (org-diary-sexp-entry): Split sexp result strings at semicolon.

When evaluating my %%(org-calendar-holidays) on October 31st, I got a
line like:

"Halloween; Daylight Saving Time Ends 3:00am (CEST)"

And it displays in calendar:
3:00 .... Halloween; Daylight Saving Time Ends (CEST)

This is wrong since Halloween is all day, not only at 3:00.

Splitting results on "; " allows to have an independant entry on each
event and displays things correctly.

Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/org.el