From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Using property values in source code blocks Date: Thu, 7 Jul 2016 08:48:03 -0700 Message-ID: References: , , , , Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLBXE-0002Sk-LQ for emacs-orgmode@gnu.org; Thu, 07 Jul 2016 11:48:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLBXA-0004el-FP for emacs-orgmode@gnu.org; Thu, 07 Jul 2016 11:48:15 -0400 Received: from iport-acv5-out.ucsd.edu ([132.239.0.10]:13509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLBXA-0004eO-5n for emacs-orgmode@gnu.org; Thu, 07 Jul 2016 11:48:12 -0400 In-Reply-To: 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" To: Joon Ro 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