emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Function to look-up a certain property


From: Alexander Baier
Subject: Re: [O] Function to look-up a certain property
Date: Sun, 02 Nov 2014 20:50:09 +0100
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux)

On 2014-11-02 18:08 Nicolas Goaziou wrote:
> 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.

This is perfect, thank you!

Regards,
-- 
Alexander Baier



reply via email to

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