From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: Replace macros on tangle Date: Mon, 26 Jun 2017 10:06:44 -0700 Message-ID: References: <87mv8uyadk.fsf@nicolasgoaziou.fr> 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]:34234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPXTT-0007Ov-Dn for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 13:06:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPXTO-0007dE-ET for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 13:06:55 -0400 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:24571) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPXTO-0007Yf-1j for emacs-orgmode@gnu.org; Mon, 26 Jun 2017 13:06:50 -0400 In-Reply-To: <87mv8uyadk.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Giacomo M , "emacs-orgmode@gnu.org" On Mon, 26 Jun 2017, Nicolas Goaziou wrote: > Hello, > > Giacomo M writes: > >> Dear all, >> how can I add macro replacement support when a source block is being >> tangled? > > I don't think so. Macro replacement is an export feature. If Giacomo's macros operate outside of src blocks, he could export using `org-org-export-to-org', then tangle the resulting file. Giacomo, if you want something to operate inside of src blocks you can use noweb replacements that execute code as outlined in (info "(org) Noweb reference syntax") In a way these are like macros. HTH, Chuck