From: Christoph LANGE <math.semantic.web@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Two functions for efficient headline navigation
Date: Sun, 21 Feb 2016 19:30:07 +0100 [thread overview]
Message-ID: <56CA022F.7020002@gmail.com> (raw)
Dear Org community,
at http://orgmode.org/worg/org-hacks.html#org-jump-to-child and
http://orgmode.org/worg/org-hacks.html#org-jump-to-id I have contributed
two interactive functions to aid structural navigation in large, complex
trees (source: http://orgmode.org/worg/code/elisp/org-jump.el). The
latter function I had already introduced on this list on 2015-03-31.
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? OTOH I could imagine it would not be easily
to implement this efficiently: as an Org document is technically a text
file that the user can edit without any restrictions, one would have to
continuously sync some internal data structure with the user's
text-level edits.
Cheers,
Christoph
--
Dr. Christoph Lange, Enterprise Information Systems Department
Applied Computer Science @ University of Bonn; Fraunhofer IAIS
http://langec.wordpress.com/about, Skype duke4701
→ Project management / coordination job in WDAqua Marie Curie ITN
http://eis.iai.uni-bonn.de/Jobs.html
next reply other threads:[~2016-02-21 18:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-21 18:30 Christoph LANGE [this message]
2016-02-22 8:39 ` Two functions for efficient headline navigation Nicolas Goaziou
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=56CA022F.7020002@gmail.com \
--to=math.semantic.web@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 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.