emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-map-entries - wrong use or bug?
Date: Fri, 14 Jun 2013 20:34:33 +0200	[thread overview]
Message-ID: <87zjusv8w6.fsf@gmail.com> (raw)


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	other threads:[~2013-06-14 18:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-14 18:34 Thorsten Jolitz [this message]
2013-06-14 18:38 ` org-map-entries - wrong use or bug? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjusv8w6.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).