Thorsten Jolitz <[email protected]> writes:
> Nick Dokos <[email protected]> writes:
>
>> Thorsten Jolitz <[email protected]> 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.
>
Use the docs, Luke!
(info "(org) Matching tags and properties")
> 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?
--
Nick