From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: org-map-entries - wrong use or bug? Date: Fri, 14 Jun 2013 21:28:43 +0200 Message-ID: <87mwqsv6dw.fsf@gmail.com> References: <87zjusv8w6.fsf@gmail.com> <87zjuswmi7.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnZgC-0006Fg-In for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 15:29:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnZgA-0002bm-WC for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 15:29:00 -0400 Received: from plane.gmane.org ([80.91.229.3]:36296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnZgA-0002bX-PP for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 15:28:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UnZg9-0001bX-5d for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 21:28:57 +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 21:28:57 +0200 Received: from tjolitz by e178058056.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Jun 2013 21:28:57 +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 Nick Dokos writes: > Thorsten Jolitz writes: One more question: what would be the syntax for matching a property? I could not find a single example of this in the whole org-mode/lisp/ directory. Imagine the doc looks like this: ,-------------------------------------------------------- | * my todos | ** get things done | :PROPERTIES: | :author: My Name | :END: | ** take care of things | ** procrastinate when tasks are unpleasant | ** delegate really unpleasant tasks :repeat: `-------------------------------------------------------- By trial-and-error I found out that tags match like this: ,-------------------------------------- | M: (length (org-map-entries t "repeat")) `-------------------------------------- but for the property I get result 0 except with ,-------------------------------------- | M: (length (org-map-entries t "/*author")) `-------------------------------------- or ,-------------------------------------- | M: (length (org-map-entries t "/-author")) `-------------------------------------- which return 5. Whats the syntax in this case? -- cheers, Thorsten