From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Baier Subject: Function to look-up a certain property Date: Sun, 02 Nov 2014 18:04:21 +0100 Message-ID: <87zjc9edpm.fsf@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkyaM-0004Lk-Lq for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 12:05:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkyaG-00046c-Eg for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 12:05:02 -0500 Received: from mx1.mailbox.org ([80.241.60.212]:38385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkyaG-00046K-4h for emacs-orgmode@gnu.org; Sun, 02 Nov 2014 12:04:56 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id C74F34024A for ; Sun, 2 Nov 2014 18:04:53 +0100 (CET) Received: from smtp1.mailbox.org ([80.241.60.240]) (using TLS with cipher AES256-GCM-SHA384) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTPS id OMVGAATJ1U7U for ; Sun, 2 Nov 2014 18:04:52 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, 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? Regards, -- Alexander Baier