emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How-to access org-mode data
@ 2011-02-22 12:40 Torsten Wagner
  2011-02-23  5:33 ` Torsten Wagner
  2011-02-26  9:30 ` Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: Torsten Wagner @ 2011-02-22 12:40 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How-to access org-mode data
  2011-02-22 12:40 How-to access org-mode data Torsten Wagner
@ 2011-02-23  5:33 ` Torsten Wagner
  2011-02-26  9:30 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Torsten Wagner @ 2011-02-23  5:33 UTC (permalink / raw)
  To: emacs-orgmode

Nevermind,
I just found 'hacking' on worg might have some infos I could start with
Torsten


On 02/22/2011 09:40 PM, Torsten Wagner wrote:
> 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
>
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How-to access org-mode data
  2011-02-22 12:40 How-to access org-mode data Torsten Wagner
  2011-02-23  5:33 ` Torsten Wagner
@ 2011-02-26  9:30 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2011-02-26  9:30 UTC (permalink / raw)
  To: Torsten Wagner; +Cc: emacs-orgmode

Hi Torsten,

Torsten Wagner <torsten.wagner@gmail.com> writes:

> 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.

The easiest way might be to recreate this data with org-map-entries
instead of trying to get them from the agenda itself.

> 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? 

A clean rewriting of the agenda would put every agenda information in a
list, then display this info in a buffer.  This way you could well fetch
information directly in the list, not in the buffer.

That would be a nice improvement indeed -- don't expect this to happen
soon thought.

Best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-26 16:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22 12:40 How-to access org-mode data Torsten Wagner
2011-02-23  5:33 ` Torsten Wagner
2011-02-26  9:30 ` Bastien

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).