From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Batch exporting a sparse tree Date: Sun, 30 Nov 2008 20:02:44 +0100 Message-ID: <2A3E9893-57BF-41AE-A0CD-658D510995D7@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6rZV-0002CR-32 for emacs-orgmode@gnu.org; Sun, 30 Nov 2008 14:03:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6rZR-0002Au-Gv for emacs-orgmode@gnu.org; Sun, 30 Nov 2008 14:03:08 -0500 Received: from [199.232.76.173] (port=49348 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6rZR-0002Ao-Ac for emacs-orgmode@gnu.org; Sun, 30 Nov 2008 14:03:05 -0500 Received: from ug-out-1314.google.com ([66.249.92.174]:62014) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L6rZQ-0000qV-7r for emacs-orgmode@gnu.org; Sun, 30 Nov 2008 14:03:04 -0500 Received: by ug-out-1314.google.com with SMTP id 36so2713249uga.17 for ; Sun, 30 Nov 2008 11:02:48 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Lindsay Todd Cc: org-mode 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 > 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