emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-map-entries - wrong use or bug?
@ 2013-06-14 18:34 Thorsten Jolitz
  2013-06-14 18:38 ` Thorsten Jolitz
  2013-06-14 18:55 ` Nick Dokos
  0 siblings, 2 replies; 9+ messages in thread
From: Thorsten Jolitz @ 2013-06-14 18:34 UTC (permalink / raw)
  To: emacs-orgmode


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-06-27 15:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-14 18:34 org-map-entries - wrong use or bug? Thorsten Jolitz
2013-06-14 18:38 ` Thorsten Jolitz
2013-06-14 18:55 ` Nick Dokos
2013-06-14 18:59   ` Thorsten Jolitz
2013-06-14 19:28   ` Thorsten Jolitz
2013-06-14 19:47     ` Nick Dokos
2013-06-14 19:52       ` Nick Dokos
2013-06-27 15:28         ` Bastien
2013-06-14 19:57       ` Thorsten Jolitz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).