From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Olaf.Hamann" Subject: Re: [babel] would like to to do simple text block expansion with parameters or multiline macro replacement text Date: Thu, 12 Apr 2012 13:04:03 +0200 Message-ID: <4F86B6A3.5070203@gmx.net> References: <4F8077B8.2010603@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:51843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIHpj-0004mF-DV for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 07:05:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIHpd-000649-AQ for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 07:04:58 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:56107) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SIHpd-00063z-0D for emacs-orgmode@gnu.org; Thu, 12 Apr 2012 07:04:53 -0400 In-Reply-To: <4F8077B8.2010603@gmx.net> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Am 07.04.2012 19:22, schrieb Olaf.Hamann: > Hello all, > > Is there an easy way to do a simple text block expansion with > parameters, I mean sth like this: > > #+begin_src xsl :tangle outputfile :noweb tangle > {{{gCV(argument1,param2)}}} > #+end_src > > #+MACRO: gCV replacement text... > ...spread over different... > ...multiple lines with arguments like $1 ... > ...and $2 and so on... > ... > #+end_macro > I think I will try to adapt m4 as org-language so that it can be used for executing src-blocks. That may fit my needs and #+MACRO stays good for oneline replacement