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