emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-map-entries - wrong use or bug?


From: Nick Dokos
Subject: Re: [O] org-map-entries - wrong use or bug?
Date: Fri, 14 Jun 2013 15:47:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Thorsten Jolitz <address@hidden> writes:

> Nick Dokos <address@hidden> writes:
>
>> Thorsten Jolitz <address@hidden> 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




reply via email to

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