emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Filtering in export hooks


From: Carsten Dominik
Subject: Re: [O] Filtering in export hooks
Date: Tue, 6 Sep 2011 10:58:13 +0200

On Sep 6, 2011, at 10:49 AM, suvayu ali wrote:

> Hi Orgers,
> 
> What is the recommended way to filter/select headlines I want to
> preprocess in any of the export hooks? I have tried using tags like
> this:
> 
> (let ((match "tag1|tag2"))
>  (org-map-entries (lambda () (my-preprocess-function))
>                  match))
> 
> 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"))
 (when match
   (org-map-entries (lambda () (my-preprocess-function))
                   match)))

- Carsten



reply via email to

[Prev in Thread] Current Thread [Next in Thread]