From: Carsten Dominik <dominik@science.uva.nl>
To: Lindsay Todd <rltodd.ml1@gmail.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: Re: Batch exporting a sparse tree
Date: Sun, 30 Nov 2008 20:02:44 +0100 [thread overview]
Message-ID: <2A3E9893-57BF-41AE-A0CD-658D510995D7@uva.nl> (raw)
In-Reply-To: <c7f7412a0811281831hcbabb6dobb54c53e77302c4a@mail.gmail.com>
On Nov 29, 2008, at 3:31 AM, Lindsay Todd wrote:
> 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?
Sure, use `let' to bind org-export-with-tags around the call to org-
export-visible.
(let ((org-export-with-tags nil)) (org-export-visible ?h nil))
- Carsten
>
>
> /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?
>>
>
>
> _______________________________________________
> 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
prev parent reply other threads:[~2008-11-30 19:03 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
2008-11-30 19:02 ` Carsten Dominik [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
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=2A3E9893-57BF-41AE-A0CD-658D510995D7@uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=rltodd.ml1@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 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).