From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Using property values in source code blocks Date: Wed, 6 Jul 2016 16:05:50 -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]:36571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKvtl-0007wC-Cr for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 19:06:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKvtg-0001rn-IL for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 19:06:28 -0400 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:32556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKvtg-0001rj-9B for emacs-orgmode@gnu.org; Wed, 06 Jul 2016 19:06:24 -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: > >> Yes. `org-property-values' does the trick >> >> >> * Subtree >> :PROPERTIES: >> :DUMMY: Value >> :END: >> >> #+BEGIN_SRC shell :var dumdum=(car (org-property-values "DUMMY")) >> echo $dumdum >> #+END_SRC >> [deleted] > > Thank you so much for the reply - this would be very useful. Would there > be, however, a way to directly replace some place holder inside a source > code block? I have no idea what you are asking. > The reason is I have to put those values inside a comment, > so I cannot pass them as variables. So your original query about accessing property values from src blocks was not what you wanted? Examples of what one is trying to do - even if they do not work exactly as intended - are often more helpful than verbal explanations of what one would like to do. Chuck