From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [bug] Macro expansion not recursive Date: Thu, 30 Jan 2014 12:57:02 +0100 Message-ID: <87mwidd6nl.fsf@gmail.com> References: <86txclhfhf.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8qEy-0000xc-Nv for emacs-orgmode@gnu.org; Thu, 30 Jan 2014 06:57:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8qEq-0004Mh-Mr for emacs-orgmode@gnu.org; Thu, 30 Jan 2014 06:57:04 -0500 Received: from plane.gmane.org ([80.91.229.3]:56411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8qEq-0004Mb-Fa for emacs-orgmode@gnu.org; Thu, 30 Jan 2014 06:56:56 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W8qEp-00045S-Gg for emacs-orgmode@gnu.org; Thu, 30 Jan 2014 12:56:55 +0100 In-Reply-To: <86txclhfhf.fsf@somewhere.org> (Sebastien Vauban's message of "Thu, 30 Jan 2014 12:32:44 +0100") 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: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, "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. Regards, -- Nicolas Goaziou