From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [bug] Macro expansion not recursive Date: Thu, 30 Jan 2014 13:15:32 +0100 Message-ID: <86ppn9hdi3.fsf@somewhere.org> References: <86txclhfhf.fsf@somewhere.org> <87mwidd6nl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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:$2@@ >> #+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