emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Clemente <n142857@gmail.com>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: FR: headline iteration API
Date: Wed, 04 Jun 2008 16:35:01 +0200	[thread overview]
Message-ID: <8763spclpm.fsf@gmail.com> (raw)
In-Reply-To: <20080530124619.GB9520@atlantic.linksys.moosehall> (Adam Spiers's message of "Fri\, 30 May 2008 13\:46\:19 +0100")

Hi,
  I find this very interesting. Some ideas:

- Maybe it could provide access not only to the headlines, but to the headlines of the headlines, and of their headlines, etc. In fact, access to the whole tree. This would allow batch processing of any contents. As a plus, each header would get a path (like XPath in XML, or DOM in XHTML) and would be addressable. Maybe useful for links.

- If there is an API to the content, applications can use data stored in org files in simple ways. For instance: „for all the headers with tag AAAA, get the the subheaders except if they are DONE, and get the property BBBB“. I don't know the „tree“ data structures in Emacs Lisp, but I suppose that representing a whole org file as a LISP object would be cool; also for easy exporting and data interchange.

- An API would be useful not only to generate reports, etc. like in your examples, but also to execute actions on each header; for instance „export“ each header, „delete“ it, ... (And now with latest version, each header can have different export options)

- Of course, this is already possible by going through the file looking for headers; an API would make iteration easier, like with mapcar 


  And many more things...


Daniel

  reply	other threads:[~2008-06-04 14:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-30 12:46 FR: headline iteration API Adam Spiers
2008-06-04 14:35 ` Daniel Clemente [this message]
2008-06-10 10:28   ` Adam Spiers
2008-06-12  6:46     ` Carsten Dominik
2008-06-12 10:16       ` Adam Spiers
2008-06-12 10:51         ` Carsten Dominik
2008-06-11  6:57 ` Dominik, C.
2008-06-11 11:06   ` Adam Spiers
2008-06-11 17:15     ` Eddward DeVilla
2008-06-12  1:09       ` Eddward DeVilla
2008-07-16 15:06       ` Max Mikhanosha

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=8763spclpm.fsf@gmail.com \
    --to=n142857@gmail.com \
    --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).