From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug? : Nested macro expansion Date: Thu, 06 Dec 2012 22:47:32 +0100 Message-ID: <8738ziua2z.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgjMA-00047c-GR for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 16:51:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgjM9-0006o8-IA for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 16:51:46 -0500 Received: from mail-wi0-f179.google.com ([209.85.212.179]:41796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgjM9-0006nJ-B9 for emacs-orgmode@gnu.org; Thu, 06 Dec 2012 16:51:45 -0500 Received: by mail-wi0-f179.google.com with SMTP id o1so665949wic.12 for ; Thu, 06 Dec 2012 13:51:43 -0800 (PST) In-Reply-To: (Jonathan Leech-Pepin's message of "Thu, 6 Dec 2012 15:48:48 -0500") 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: Jonathan Leech-Pepin Cc: Org Mode Mailing List Hello, Jonathan Leech-Pepin writes: > When trying to insert a macro as one of the variables in another macro > (inline and not in the definition), the export fails in both exporters > in different ways. > > Using the following example: > > #+begin_src org > #+MACRO: test2 /$1/ > #+MACRO: test3 *$1* > #+MACRO: test {{{test2($1)}}} - $2 > #+MACRO: test4 $1 - $2 > > Test > 1. {{{test(hello,goodbye)}}} > 2. {{{test(hello, {{{test3(goodbye)}}})}}} > 3. {{{test({{{test3(hello)}}},goodbye)}}} > 4. {{{test4({{{test3(hello)}}},goodbye)}}} > 5. {{{test4(hello,{{{test3(goodbye)}}})}}} > #+end_src You're not supposed to nest macro calls. Only macro definitions. Regards, -- Nicolas Goaziou