Re: [Orgmode] How-to access org-mode data

2011-02-26 Thread Bastien
Hi Torsten,

Torsten Wagner torsten.wag...@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

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] How-to access org-mode data

2011-02-22 Thread Torsten Wagner

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




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] How-to access org-mode data

2011-02-22 Thread Torsten Wagner

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






___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode