From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mead Subject: Re: Excluding just heading from export Date: Sat, 06 Feb 2010 14:58:32 +0000 Message-ID: <87d40ifm1z.fsf@gmail.com> References: <87hbpufqq1.fsf@gmail.com> <87tytue95g.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ndm7S-0001lZ-3M for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 09:58:46 -0500 Received: from [199.232.76.173] (port=53804 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ndm7R-0001lE-Jl for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 09:58:45 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ndm7M-0006sh-5B for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 09:58:44 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:58622) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ndm7J-0006rT-96 for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 09:58:37 -0500 Received: by ewy28 with SMTP id 28so831354ewy.8 for ; Sat, 06 Feb 2010 06:58:35 -0800 (PST) In-Reply-To: <87tytue95g.fsf@fastmail.fm> (Matt Lundin's message of "Sat, 06 Feb 2010 09:22:35 -0500") 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: Matt Lundin Cc: emacs-orgmode@gnu.org Matt Lundin writes: > > One hack would be to use an export hook to remove headings with a > particular tag. E.g., > > (defvar my-org-export-remove-heading-tag "killtag") > > (defun my-org-export-remove-headings-with-tag () > (while (re-search-forward (concat ":" my-org-export-remove-heading-tag ":") nil t) > (beginning-of-line) > (kill-line))) > > (add-hook > 'org-export-preprocess-after-tree-selection-hook > 'my-org-export-remove-headings-with-tag) > > Best, > Matt > Thanks Matt, I'll give that a try and see if it does what I need. Paul