From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Filtering in export hooks Date: Tue, 6 Sep 2011 11:08:57 +0200 Message-ID: References: <62F4E48A-A0B3-48B0-8180-471EE93F187A@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0reh-00036L-J4 for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 05:09:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0reg-0007Fw-FF for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 05:09:19 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:53375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0reg-0007Fo-9u for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 05:09:18 -0400 Received: by bkbzt4 with SMTP id zt4so5408805bkb.0 for ; Tue, 06 Sep 2011 02:09:17 -0700 (PDT) In-Reply-To: <62F4E48A-A0B3-48B0-8180-471EE93F187A@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: org-mode mailing list Hi Carsten, On Tue, Sep 6, 2011 at 10:58 AM, Carsten Dominik wrote: >> >> But this only works when tags: is non-nil. Any hints on how I could >> achieve something that "works always"? > > May be I do not understand, but how about > > (let ((match "tag1|tag2")) > =A0(when match > =A0 (org-map-entries (lambda () (my-preprocess-function)) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 match))) > Sorry after going through my email again I realised it was ambiguous. When I say it doesn't work, I don't mean Org throws an error when tags:nil is set. The preprocessing gets skipped. To restate my intentions more clearly; I want to preprocess headlines that match the tags list "tag1|tag2" during latex export irrespective of how the tags: option is setup. If this is not possible by a tags match, what are my alternatives? > - Carsten Thanks a lot. :) --=20 Suvayu Open source is the future. It sets us free.