[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Function to look-up a certain property
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Function to look-up a certain property |
Date: |
Sun, 02 Nov 2014 18:08:41 +0100 |
Hello,
Alexander Baier <address@hidden> writes:
> I am looking for a function that starts at point and walks up the
> outline-tree searching for property P. If P is defined the function
> returns P's value, otherwise nil. If The top level headline does not
> have a property P, the function looks for #+P between the first headline
> and bob.
>
> Is there something in org's code base that does this?
(org-entry-get (point) "P" t)
However, it will look for "#+PROPERTY: P val" instead, and it isn't
limited to data before first headline.
Regards,
--
Nicolas Goaziou