[Top][All Lists]

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

Re: [O] Using property values in source code blocks

From: Charles C. Berry
Subject: Re: [O] Using property values in source code blocks
Date: Fri, 15 Jul 2016 19:05:52 -0700
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

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.


--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))

** Subheading
:DUMMY: 100

#+BEGIN_SRC shell :noweb yes
echo <<get-property(prop="DUMMY",pom=(point))>>

: 100

--8<---------------cut here---------------end--------------->8---


reply via email to

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