emacs-orgmode
[Top][All Lists]
Advanced

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

[O] org-map-entries - wrong use or bug?


From: Thorsten Jolitz
Subject: [O] org-map-entries - wrong use or bug?
Date: Fri, 14 Jun 2013 20:34:33 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Hi List, 

I tried out `org-map-entries' with this file

,------------------------------------------------
| * my todos
| ** TODO get things done
| ** TODO take care of things
| ** DONE procrastinate when tasks are unpleasant
| ** DONE delegate really unpleasant tasks
`------------------------------------------------

with an example similar to the one in "Appendix A: Hacking" in the Org
manual

,--------------------------------------
| M: (length (org-map-entries t "\+Done"))
`--------------------------------------

but result is '0' while it should be '2'.

I debugged the function and it seems that the matcher does not match.
These are my todo keywords

,----------------------------------------------------------------------------
| Result: "...\\(TODO\\|NEXT\\|DONE\\|WAITING\\|HOLD\\|CANCELLED\\|PHONE\\)...
`----------------------------------------------------------------------------

and this is the matcher

,----------------------------------------------------------------------
| (and (progn (setq org-cached-props nil) (member "DONE" tags-list)) t)
`----------------------------------------------------------------------

as evaluated on line line 13863 of org.el. 

Wrong use of `org-map-entries' or is there a bug?

-- 
cheers,
Thorsten





reply via email to

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