From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Help with org-map-entries and property searches Date: Wed, 17 Dec 2008 10:46:44 -0500 Message-ID: <878wqeu7mj.fsf@gollum.intra.norang.ca> References: <67E77E1F-4917-4AF6-9161-42EE49D8721F@alexanderonline.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCybx-0002PE-8x for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 10:46:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCybw-0002P2-P9 for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 10:46:56 -0500 Received: from [199.232.76.173] (port=45693 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCybw-0002Oz-Kw for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 10:46:56 -0500 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:60028) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LCybw-00078h-AS for emacs-orgmode@gnu.org; Wed, 17 Dec 2008 10:46:56 -0500 In-Reply-To: <67E77E1F-4917-4AF6-9161-42EE49D8721F@alexanderonline.org> (Ben Alexander's message of "Wed\, 17 Dec 2008 14\:55\:52 +0000") 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: Ben Alexander Cc: emacs-orgmode Org-Mode Ben Alexander writes: > 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 > Try this: (add 2 more \ characters before the |) (length (org-map-entries t "+LEDGER={transaction\\\|entry}")) => 3 HTH, Bernt