From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Christoph LANGE <math.semantic.web@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Two functions for efficient headline navigation
Date: Mon, 22 Feb 2016 09:39:06 +0100 [thread overview]
Message-ID: <87wppx16mt.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <56CA022F.7020002@gmail.com> (Christoph LANGE's message of "Sun, 21 Feb 2016 19:30:07 +0100")
Hello,
Christoph LANGE <math.semantic.web@gmail.com> writes:
> Related to these functions I have a comment on Org's design.
> org-jump-to-child (prompts for the title of a sub-heading of the current
> heading and navigates there) was fairly complex to implement. Coming
> from an XML background I was surprised to see that Org has no notion of
> a data model or of the semantics of a document and its tree, but that I
> was basically required to implement an algorithm to walk through all
> sub-headings and collect them. Has an implementation based on a data
> model ever been considered?
See
(org-with-wide-buffer
(org-narrow-to-subtree)
(org-element-parse-buffer 'headline))
and
`org-element-map'
Also, `org-map-entries' could do the job, with a `tree' SCOPE and an
appropriate MATCH (e.g. "LEVEL>N" where N is the current level).
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2016-02-22 8:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-21 18:30 Two functions for efficient headline navigation Christoph LANGE
2016-02-22 8:39 ` Nicolas Goaziou [this message]
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=87wppx16mt.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=math.semantic.web@gmail.com \
/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.