On Sun, Feb 19 2012, Peter Münster wrote: > Hi, > > Given a todo list in an org file, is there already a function, that > converts this list to an elisp list, that contains at least heading, > deadline and properties? > > Example input: > * TODO todo-test > DEADLINE: <2012-04-19 Thu 13:33> > :PROPERTIES: > :notify: notify-test > :END: > * TODO todo-test2 > DEADLINE: <2012-05-20 Sun 16:66> > :PROPERTIES: > :notify: notify-test2 > :END: > > Example output: > ((file "test.org" heading "TODO todo-test" deadline (111 222 333) > properties (notify notify-test)) > (file "test.org" heading "TODO todo-test2" deadline (123 456 789) > properties (notify notify-test2))) > > Or are there functions, that could help me, to do it myself? > (I've tried with `org-agenda-get-day-entries', but without success...)
Hi, If you load org-element.el from contrib/, I think the function `org-element-parse-buffer' does what you want (and probably a whole lot more). Eric -- GNU Emacs 24.0.93.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-02-16 on pellet Org-mode version 7.8.03 (release_7.8.03.362.g1cc2)