From: "Lindsay Todd" <rltodd.ml1@gmail.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Batch exporting a sparse tree
Date: Fri, 28 Nov 2008 21:31:56 -0500 [thread overview]
Message-ID: <c7f7412a0811281831hcbabb6dobb54c53e77302c4a@mail.gmail.com> (raw)
In-Reply-To: <c7f7412a0811281555k3cf510d2o3f0b18a9f00a3719@mail.gmail.com>
To answer my own question, this incantation seems to work:
emacs -batch -l ~/.emacs \
-eval '(progn (find-file "~/projects/gtd.org")
(org-tags-sparse-tree t "TODO=\"PROJECT\"|TODO=\"MAYBE\"")
(org-export-visible ?h nil))' -kill
Is there a way to remove tags while doing this export?
/Lindsay
On Fri, Nov 28, 2008 at 6:55 PM, Lindsay Todd <rltodd.ml1@gmail.com> wrote:
> I am trying to write a script to extract a sparse tree, selected by
> TODO keywords, from my the gtd.org file. The sparse tree should then
> be exported to an html file. I am using this command:
>
> emacs -batch -l ~/.emacs \
> -eval '(find-file "~/projects/gtd.org")' \
> -eval '(org-show-todo-tree "PROJECT|MAYBE")' \
> -eval '(org-export-visible ?h nil)'
>
> The resulting html file has entries for "PROJECT" and "NEXT"!
> Meanwhile, none of my "MAYBE" entries are selected. What might I be
> doing wrong?
>
next prev parent reply other threads:[~2008-11-29 2:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-28 23:55 Batch exporting a sparse tree Lindsay Todd
2008-11-29 2:31 ` Lindsay Todd [this message]
2008-11-30 19:02 ` Carsten Dominik
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=c7f7412a0811281831hcbabb6dobb54c53e77302c4a@mail.gmail.com \
--to=rltodd.ml1@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).