all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Function to look-up a certain property
Date: Sun, 02 Nov 2014 18:08:41 +0100	[thread overview]
Message-ID: <87bnopil7q.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87zjc9edpm.fsf@mailbox.org> (Alexander Baier's message of "Sun, 02 Nov 2014 18:04:21 +0100")

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.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2014-11-02 17:08 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 [this message]
2014-11-02 19:50   ` Alexander Baier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bnopil7q.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.