From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-map-entries - wrong use or bug? Date: Fri, 14 Jun 2013 15:47:24 -0400 Message-ID: <87vc5gwk37.fsf@pierrot.dokosmarshall.org> References: <87zjusv8w6.fsf@gmail.com> <87zjuswmi7.fsf@pierrot.dokosmarshall.org> <87mwqsv6dw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnZyE-0001XA-GU for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 15:47:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnZyD-0000ww-7F for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 15:47:38 -0400 Received: from plane.gmane.org ([80.91.229.3]:57821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnZyD-0000wc-1K for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 15:47:37 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UnZyB-0005sr-DO for emacs-orgmode@gnu.org; Fri, 14 Jun 2013 21:47:35 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Jun 2013 21:47:35 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Jun 2013 21:47:35 +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 Thorsten Jolitz writes: > 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. > Use the docs, Luke! (info "(org) Matching tags and properties") > 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? -- Nick