[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to find the headline matching a string
From: |
Thorsten Jolitz |
Subject: |
Re: [O] How to find the headline matching a string |
Date: |
Sat, 31 May 2014 22:14:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Chris Poole <address@hidden> writes:
> Eric Abrahamsen:
>> the `org-map-entries' function can be given a scope of 'agenda
>
> That worked perfectly, thanks. Here's what I ended up with:
>
> (org-map-entries (lambda ()
> (when (equal title (org-get-heading t t))
> (org-entry-put (point) "TODO" "DONE")))
> tag 'agenda)
As much as I like the powerful `org-map-entries', I wonder if it will
coexist with `org-element-map' in the future, since it does not use the
new parser.
Whats the recommendation here? Should one rather use
,-----------------------------------------------------------
| (org-element-map (org-element-parse-buffer) 'headline (lambda () ...))
`-----------------------------------------------------------
nowadays, or do both functions serve different purposes, or is it just a
matter of taste?
--
cheers,
Thorsten