> Date: Thu, 7 Jul 2016 08:48:03 -0700 > From: ccberry@ucsd.edu > To: joon.ro@outlook.com > Subject: Re: [O] Using property values in source code blocks > CC: emacs-orgmode@gnu.org > > On Wed, 6 Jul 2016, Joon Ro wrote: > > > > > > > > >> I have no idea what you are asking. > >> > > [snip] > > > I'm sorry if my explanation was not clear, but the original example I > > provided shows exactly what I wanted to do: > > And my response showed how to do it: you construct a src block with a > noweb reference that places the *results* of evaluating another src block > in the code (or comment). The src block in the named in the noweb > reference handles retrieving the property value, viz. > > --8<---------------cut here---------------end--------------->8--- > > * Subtree > :PROPERTIES: > :DUMMY: Value > :END: > > #+NAME: get-property > #+BEGIN_SRC emacs-lisp :var prop="prop" > (car (org-property-values prop)) > #+END_SRC > > #+BEGIN_SRC shell :noweb yes > > echo <> > > #+END_SRC > > #+RESULTS: > : Value > > --8<---------------cut here---------------end--------------->8--- > > > See > > (info "(org) Noweb reference syntax") > > > Chuck > I see. I must have misunderstood that example. I will try that - thank you so much!