emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [bug] Macro expansion not recursive


From: Sebastien Vauban
Subject: Re: [O] [bug] Macro expansion not recursive
Date: Thu, 30 Jan 2014 13:15:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

Hello Nicolas,

Nicolas Goaziou wrote:
> "Sebastien Vauban" 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.

Blush...

Thanks!
  Seb

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]