From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Org src blocks and multiline macros Date: Thu, 02 Aug 2018 09:33:33 +0300 Message-ID: <87effhb7lu.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fl7BH-0003hf-6d for emacs-orgmode@gnu.org; Thu, 02 Aug 2018 02:33:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fl7BC-00070r-A0 for emacs-orgmode@gnu.org; Thu, 02 Aug 2018 02:33:51 -0400 Received: from [195.159.176.226] (port=53141 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fl7BC-0006zn-0e for emacs-orgmode@gnu.org; Thu, 02 Aug 2018 02:33:46 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fl792-0005GZ-7x for emacs-orgmode@gnu.org; Thu, 02 Aug 2018 08:31:32 +0200 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: emacs-orgmode@gnu.org Greetings. I am once again facing a situation where I would like to define a multiline org macro. If my memory is not failing me (it might well be), this is not possible. So this lead me to consider the use of Org source blocks in Babel. Which might well be a discussion I have had here before, see the reference to the state of my memory above. 1. Is it now possible to pass variables to these blocks? 2. If not, could we have this feature? This would give us immediate multiline macros in the following style, where referring to the value of the variable could be done macro-style. #+HEADER: :var val1=foo #+BEGIN_SRC org :var val2=" bar" Currently this gives me nothing but {{{val1}}}{{{val2}}}. This property would really help me structure some org documents in a sensible way when common parts can be reused. #+END_SRC Jarmo