From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Filtering in export hooks Date: Tue, 6 Sep 2011 11:49:58 +0200 Message-ID: <74E04FF8-94AD-4A44-AEC1-9D5217317269@gmail.com> References: <62F4E48A-A0B3-48B0-8180-471EE93F187A@gmail.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0sI7-0005mR-1H for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 05:50:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0sI5-0007LL-Sa for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 05:50:03 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:64836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0sI5-0007Kx-L7 for emacs-orgmode@gnu.org; Tue, 06 Sep 2011 05:50:01 -0400 Received: by ewy9 with SMTP id 9so2917697ewy.0 for ; Tue, 06 Sep 2011 02:50:00 -0700 (PDT) In-Reply-To: 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: suvayu ali Cc: org-mode mailing list On Sep 6, 2011, at 11:08 AM, suvayu ali wrote: > Hi Carsten, >=20 > On Tue, Sep 6, 2011 at 10:58 AM, Carsten Dominik > wrote: >>>=20 >>> But this only works when tags: is non-nil. Any hints on how I could >>> achieve something that "works always"? >>=20 >> May be I do not understand, but how about >>=20 >> (let ((match "tag1|tag2")) >> (when match >> (org-map-entries (lambda () (my-preprocess-function)) >> match))) >>=20 >=20 > 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. Which of the preprocessing hooks are you using? I am still confused by your description, maybe you can make a small example and show exactly = what works and what does not work? - Carsten >=20 > 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? >=20 >> - Carsten >=20 > Thanks a lot. :) >=20 > --=20 > Suvayu >=20 > Open source is the future. It sets us free. - Carsten