From: Alexander Baier <alexander.baier@mailbox.org>
To: emacs-orgmode@gnu.org
Subject: Re: Function to look-up a certain property
Date: Sun, 02 Nov 2014 20:50:09 +0100 [thread overview]
Message-ID: <87vbmxe61a.fsf@mailbox.org> (raw)
In-Reply-To: <87bnopil7q.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 02 Nov 2014 18:08:41 +0100")
On 2014-11-02 18:08 Nicolas Goaziou wrote:
> Hello,
>
> Alexander Baier <alexander.baier@mailbox.org> 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
prev parent reply other threads:[~2014-11-02 19:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-02 17:04 Function to look-up a certain property Alexander Baier
2014-11-02 17:08 ` Nicolas Goaziou
2014-11-02 19:50 ` Alexander Baier [this message]
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=87vbmxe61a.fsf@mailbox.org \
--to=alexander.baier@mailbox.org \
--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).