emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Help with org-map-entries and property searches


From: Bernt Hansen
Subject: [Orgmode] Re: Help with org-map-entries and property searches
Date: Wed, 17 Dec 2008 10:46:44 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Ben Alexander <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]