From mboxrd@z Thu Jan 1 00:00:00 1970 From: phillip.lord@russet.org.uk (Phillip Lord) Subject: remove sections with specific names Date: Fri, 15 Jul 2016 23:37:38 +0100 Message-ID: <8760s65xzh.fsf@russet.org.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOBkM-0002Zi-KT for emacs-orgmode@gnu.org; Fri, 15 Jul 2016 18:38:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOBkJ-0004za-Ak for emacs-orgmode@gnu.org; Fri, 15 Jul 2016 18:38:14 -0400 Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:41037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOBkJ-0004z6-4O for emacs-orgmode@gnu.org; Fri, 15 Jul 2016 18:38:11 -0400 Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1bOBkD-0006mv-Fd for emacs-orgmode@gnu.org; Fri, 15 Jul 2016 23:38:05 +0100 Received: from cpc1-benw10-2-0-cust373.gate.cable.virginm.net ([77.98.219.118] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1bOBkD-00073B-Mh for emacs-orgmode@gnu.org; Fri, 15 Jul 2016 23:38:05 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org I'm trying to remove sections with specific names from the exported output (I know about adding a :noexport: tag, but I always want to remove the ones of the same name). I've tried using :filter-section but if I return nil from this, it removes the section but this leaves the headline in and I want to remove both. So, I think I need to use :filter-parse-tree. I'm struggling here a bit though. I'm not sure how to pull apart the parse tree. Am I going about this in the right way, or am I, erm, barking up the wrong tree? Phil