From: Bernt Hansen <bernt@norang.ca>
To: Ben Alexander <bva@alexanderonline.org>
Cc: emacs-orgmode Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: Help with org-map-entries and property searches
Date: Wed, 17 Dec 2008 10:46:44 -0500 [thread overview]
Message-ID: <878wqeu7mj.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <67E77E1F-4917-4AF6-9161-42EE49D8721F@alexanderonline.org> (Ben Alexander's message of "Wed\, 17 Dec 2008 14\:55\:52 +0000")
Ben Alexander <bva@alexanderonline.org> 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
next prev parent reply other threads:[~2008-12-17 15:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 14:55 Help with org-map-entries and property searches Ben Alexander
2008-12-17 15:46 ` Bernt Hansen [this message]
2008-12-17 15:51 ` Ben Alexander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878wqeu7mj.fsf@gollum.intra.norang.ca \
--to=bernt@norang.ca \
--cc=bva@alexanderonline.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).