[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug? : Nested macro expansion
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug? : Nested macro expansion |
Date: |
Thu, 06 Dec 2012 22:47:32 +0100 |
Hello,
Jonathan Leech-Pepin <address@hidden> 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