From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: [Orgmode] Re: Automatic noexport tag based on rules? Date: Tue, 29 Mar 2011 14:40:03 -0400 Message-ID: <87oc4t7ou4.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=56505 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4eRp-0007BL-91 for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 15:19:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4dpl-0005s5-Sx for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 14:40:07 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:42018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4dpl-0005rh-MP for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 14:40:05 -0400 In-Reply-To: (John Hendy's message of "Sun, 27 Mar 2011 15:10:57 -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: John Hendy Cc: emacs-orgmode John Hendy writes: > On Sun, Mar 27, 2011 at 2:37 PM, Samuel Wales wrot= e: >> That is indeed an excellent solution if you want to add a tag for a >> todo kw. =C2=A0However, I wonder if there is a direct approach, where the >> exporter simply does not export if it is a certain todo kw. =C2=A0Is the >> solution to have the exporter delete anything with that todo kw? =C2=A0Or >> is there a way to have it skip? > > I think that was Carsten's suggestion a bit back, but I'm not sure. I > think I asked if it was just deleting as it channeled through the > export function but didn't get a response. Looking back, though, I'm > sure that's what it was and my question was probably a bit silly :) You are correct. The export hook that Carsten provided deletes items in a temporary buffer, not in your org files. In fact, you can use the export hooks to do almost anything to this temporary buffers before they are exported; your original org files will not be touched. > And yes, I have turned this off as I find adding :noexport: to ever > todo in addition to whatever tags I already use to ID the project/task > is annoying and ugly. I've toyed with simply having a * Tracking > headline at the beginning of each file where I dump todos via capture > and track time and then having that have a top level noexport tag to > take care of things. That's pretty much nice, but I still like todos > created during meeting minutes or in the context of some other project > notes to stay where they make sense rather than separating them from > their location and putting them elsewhere. > > So.... I've got some solutions but am not quite happy yet. I should > re-visit Carsten's solution to strip it on export. That would probably > be the ticket. Yes, that would be the easiest solution, requiring no additional markup. Best, Matt