On Fri, 15 Jul 2016, Joon Ro wrote:
I spoke too early - with (org-entry-get nil prop) I have to put the code block under the subtree I want to extract the property value from. Would it be possible to get the property value of the current subtree?
Give org-entry-get a suitable value for `pom'. See the docstring for org-entry-get. Example: --8<---------------cut here---------------start------------->8--- * Top Heading #+NAME: get-property #+BEGIN_SRC emacs-lisp :noweb yes :var prop="prop" :var pom=0 (car (org-entry-get-multivalued-property pom prop)) #+END_SRC ** Subheading :PROPERTIES: :DUMMY: 100 :END: #+BEGIN_SRC shell :noweb yes echo <<get-property(prop="DUMMY",pom=(point))>> #+END_SRC #+RESULTS: : 100 --8<---------------cut here---------------end--------------->8--- Chuck