From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [Orgmode] Re: Automatic noexport tag based on rules? Date: Tue, 29 Mar 2011 23:05:54 +0200 Message-ID: <62A8413A-58B4-4566-9717-859DC7CBAE45@gmail.com> References: <87oc4t7ou4.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=45142 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4g76-0003Eo-QH for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 17:06:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4g6w-0000fV-Hw for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 17:05:59 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:33456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4g6w-0000fP-DQ for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 17:05:58 -0400 Received: by eyd9 with SMTP id 9so217086eyd.0 for ; Tue, 29 Mar 2011 14:05:57 -0700 (PDT) In-Reply-To: <87oc4t7ou4.fsf@fastmail.fm> 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 On 29.3.2011, at 20:40, Matt Lundin wrote: > John Hendy writes: >=20 >> On Sun, Mar 27, 2011 at 2:37 PM, Samuel Wales = wrote: >>> That is indeed an excellent solution if you want to add a tag for a >>> todo kw. However, I wonder if there is a direct approach, where the >>> exporter simply does not export if it is a certain todo kw. Is the >>> solution to have the exporter delete anything with that todo kw? Or >>> is there a way to have it skip? >>=20 >> 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 :) >=20 > 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. >=20 >> 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. >>=20 >> 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. >=20 > Yes, that would be the easiest solution, requiring no additional > markup. I have a good patch for this lined up - will check it in tomorrow. - Carsten