From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: get all todo items as lisp list
Date: Sun, 19 Feb 2012 08:28:14 +0800 [thread overview]
Message-ID: <87vcn3wtsx.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87wr7krqd9.fsf@micropit.couberia.bzh
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)
next prev parent reply other threads:[~2012-02-19 0:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-18 17:41 get all todo items as lisp list Peter Münster
2012-02-19 0:28 ` Eric Abrahamsen [this message]
2012-02-19 5:01 ` Jambunathan K
2012-02-19 10:57 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vcn3wtsx.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).