From: Dan Davison <davison@stats.ox.ac.uk>
To: emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: deleting hidden parts of sparse trees
Date: Mon, 7 Jul 2008 09:55:13 +0100 [thread overview]
Message-ID: <20080707085512.GA10608@stats.ox.ac.uk> (raw)
I'd like to be able to create a 'pruned' tree -- I am thinking of an
operation that is similar to sparse tree creation, but which results
in the deletion (not just folding) of all subtrees that contain no
matching entries.
I don't think this currently exists as such (?), but it is possible to do
what I want by (1) creating a sparse tree, and (2) org-export-visible,
selecting the 'keep-buffer' option. So that's good. However, I don't
know how to do it programmatically, because org-export-visible has
interactive keyboard input. (Or am I just exposing my ignorance
here??) I've looked at the code, and what occurs to me is to hack out
the middle bit of org-export-visible as a separate function, say
org-prune-invisible or something. I sort of tried. It, err, didn't
work. Anyone think this would be worth doing? (The functionality, if
not via my suggested route)
Dan
next reply other threads:[~2008-07-07 8:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-07 8:55 Dan Davison [this message]
2008-07-07 16:44 ` deleting hidden parts of sparse trees Carsten Dominik
2008-07-07 16:48 ` Carsten Dominik
2008-07-08 17:20 ` Dan Davison
[not found] ` <2E800125-C30C-477E-AB79-01571C4C0D4D@uva.nl>
2008-07-08 19:04 ` Dan Davison
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=20080707085512.GA10608@stats.ox.ac.uk \
--to=davison@stats.ox.ac.uk \
--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).