From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: How-to access org-mode data Date: Tue, 22 Feb 2011 21:40:07 +0900 Message-ID: <4D63AEA7.4050207@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=60822 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrrXK-0000ep-0V for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 07:40:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrrXI-0007RT-O7 for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 07:40:13 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:46910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrrXI-0007R4-Jf for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 07:40:12 -0500 Received: by pzk33 with SMTP id 33so431157pzk.0 for ; Tue, 22 Feb 2011 04:40:11 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I try to extract certain information which are processed by org-mode. As an example the compiled agenda-list. Basically, I want to have certain parts of the agenda in a variable (or an array) instead of a buffer. I tried to follow org-agenda.el but this seems to be hard of a elisp beginner. At the moment I'm unsure what would be the best way to get those infos. I could run e.g., (org-agenda list nil nil 1) however, this always end up in a buffer, which I could start parsing and closing afterwards, but maybe there is a more smart way? I don't want to break any code and try to get this on top of the original org-mode code. To keep it simple for an example: Create org-agenda get the very next thing which need to be done as a string into a variable call result Any feedback is welcome Thanks Torsten