|
From: | Carsten Dominik |
Subject: | Re: [Orgmode] Re: Batch exporting a sparse tree |
Date: | Sun, 30 Nov 2008 20:02:44 +0100 |
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
/LindsayOn 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?_______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. address@hidden http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Prev in Thread] | Current Thread | [Next in Thread] |