From: "Eddward DeVilla" <eddward@gmail.com>
To: Adam Spiers <orgmode@adamspiers.org>,
org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: FR: headline iteration API
Date: Wed, 11 Jun 2008 12:15:11 -0500 [thread overview]
Message-ID: <b71b18520806111015n530c4621r75e4296ea60efea4@mail.gmail.com> (raw)
In-Reply-To: <20080611110623.GC19396@atlantic.linksys.moosehall>
Are the functions behind C-c C-N, C-c C-p, C-c C-f, C-c C-b & C-c C-u
available? Seems you could add a function for going to the first
child. As long as that, C-c C-f & C-c C-b all return something to let
you know there isn't a next, this should be pretty complete.
I guess all you would need would be the following functions which
would move to the correct place or return something to say there isn't
a next/parent/child/sibling etc to signal the end of iteration.
- doc traversal
- first-item
Go to the first item in the file.
- current-item
Go to the beginning of the item containing the cursor.
- next-item
Go to the item after the current one.
- previous-item
Go to item before the current one
- tree traversal
- parent-item
Go to the parent item of the current item
- first-child-item
Go to the first item contained in the current item
- next-sibling-item
Go to the next item that has the same parent
- previous-sibling-item
Go to the previous item that has the same parent
This ought to be enough to try to implement anything else on top of
it. Did I miss something?
Edd
On Wed, Jun 11, 2008 at 6:06 AM, Adam Spiers <orgmode@adamspiers.org> wrote:
> On Wed, Jun 11, 2008 at 08:57:39AM +0200, Dominik, C. wrote:
>> Hi Adam and others,
>>
>> I do like the idea of an API to iterate of entries and outline trees.
>> For now, I am following this discussion to see what ideas pop up.
>> When I find the time, something will be implemented.
>
> Great. As you can see from my other post, another use case just
> popped up.
>
> Am I right in thinking that you must already have a lot of the code
> for this? Presumably agenda generation and export must both do
> headline iteration in a similar manner?
>
> Full-blown reporting would be seriously cool. Think: pretty coloured
> graphs showing how the contents of your TODO lists vary over the days,
> weeks, months ... :-) Very useful for trending, planning, ensuring
> that the various areas of your life are kept in balance according to
> your "30,000-50,000 foot views", as David Allen calls them.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
next prev parent reply other threads:[~2008-06-11 17:15 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b71b18520806111015n530c4621r75e4296ea60efea4@mail.gmail.com \
--to=eddward@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=orgmode@adamspiers.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.