[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug] Macro expansion not recursive
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [bug] Macro expansion not recursive |
Date: |
Thu, 30 Jan 2014 12:57:02 +0100 |
Hello,
"Sebastien Vauban" <sva-news-D0wtAvR13HarG/address@hidden>
writes:
> It was said that "Macro expansion is already recursive: the template can
> be another macro." Though, my example does not work: the second macro
> call is exported almost "verbatim".
>
> #+MACRO: highlight @@html:<span style="background-color: $1;">$2</span>@@
> #+MACRO: hl {{{highlight(#FFFF00,$1}}}
>
> {{{highlight(yellow,This is important!)}}}
>
> {{{hl(This is important!)}}}
>
> Am I missing something?
Yes, a parenthesis after $1 in hl macro.
Regards,
--
Nicolas Goaziou