[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Re: Batch exporting a sparse tree
From: |
Lindsay Todd |
Subject: |
[Orgmode] Re: Batch exporting a sparse tree |
Date: |
Fri, 28 Nov 2008 21:31:56 -0500 |
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 <address@hidden> 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?
>