From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: org-map-entries - wrong use or bug? Date: Fri, 14 Jun 2013 20:34:33 +0200 Message-ID: <87zjusv8w6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnYpl-00018G-HT for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 14:34:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnYpk-0000Ni-CD for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 14:34:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:44028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnYpk-0000Nd-5K for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 14:34:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UnYpj-0006Ej-AA for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 20:34:47 +0200 Received: from e178058056.adsl.alicedsl.de ([85.178.58.56]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Jun 2013 20:34:47 +0200 Received: from tjolitz by e178058056.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Jun 2013 20:34:47 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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