From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Alexander Subject: Help with org-map-entries and property searches Date: Wed, 17 Dec 2008 14:55:52 +0000 Message-ID: <67E77E1F-4917-4AF6-9161-42EE49D8721F@alexanderonline.org> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCxog-0001X6-TP for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 09:56:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCxoe-0001Wq-UN for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 09:56:02 -0500 Received: from [199.232.76.173] (port=38346 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCxoe-0001Wn-PG for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 09:56:00 -0500 Received: from harley.gnservers.com ([72.52.242.16]:49796) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LCxoe-0002WY-B8 for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 09:56:00 -0500 Received: from [86.129.127.247] (helo=[10.0.1.4]) by harley.gnservers.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1LCxoY-0001iy-Fl for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 09:55:54 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Org-Mode Hi, I'm trying to code lisp, and it's slow going for me. I was hoping someone with a few spare cycles could explain why this doesn't work the way I expect. I typed the following code into an org file and hit C-x C-e (eval-last-sexp): (length (org-map-entries t "+LEDGER=\"entry\"")) => 1 (length (org-map-entries t "+LEDGER=\"transaction\"")) => 2 This looks good: I do have two headlines with a property called LEDGER where the value is "transaction" (no quotes) However, all of the following attempts to search for both kinds of (or all) values fail (no error, just the wrong value). What am I doing wrong? (length (org-map-entries t "+LEDGER={\"transaction\"\|\"entry\"}")) => 0 (length (org-map-entries t "+LEDGER={transaction\|entry}")) => 0 (length (org-map-entries t "+LEDGER=entry")) => 0 (length (org-map-entries t "+LEDGER")) => 0 I was inspired by this example of a property search from the org info page (section 7.3) +work-boss+PRIORITY="A"+Coffee="unlimited"+Effort<2 \ +With={Sarah\|Denny}+SCHEDULED>="<2008-10-11>" I've tried this in GNU Emacs 22.3.2 (i386-apple-darwin9.5.0, Carbon Version 1.6.0) of 2008-09-21 on plume.sr.unh.edu - Aquamacs Distribution 1.5 and GNU Emacs 22.3.1 (i386-apple-darwin9.5.1, Carbon Version 1.6.0) of 2008-11-07 on Xander.local (compiled via MacPorts) Org-mode version 6.15a in both. I also got the same results when I did it after a 'start-vanilla- aquamacs' (thanks to William Henney for the tip!) Thanks, Ben