From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-map-entries - wrong use or bug?
Date: Fri, 14 Jun 2013 21:28:43 +0200 [thread overview]
Message-ID: <87mwqsv6dw.fsf@gmail.com> (raw)
In-Reply-To: 87zjuswmi7.fsf@pierrot.dokosmarshall.org
Nick Dokos <ndokos@gmail.com> writes:
> Thorsten Jolitz <tjolitz@gmail.com> 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.
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?
--
cheers,
Thorsten
next prev parent reply other threads:[~2013-06-14 19:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-14 18:34 org-map-entries - wrong use or bug? Thorsten Jolitz
2013-06-14 18:38 ` Thorsten Jolitz
2013-06-14 18:55 ` Nick Dokos
2013-06-14 18:59 ` Thorsten Jolitz
2013-06-14 19:28 ` Thorsten Jolitz [this message]
2013-06-14 19:47 ` Nick Dokos
2013-06-14 19:52 ` Nick Dokos
2013-06-27 15:28 ` Bastien
2013-06-14 19:57 ` Thorsten Jolitz
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=87mwqsv6dw.fsf@gmail.com \
--to=tjolitz@gmail.com \
--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).