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