From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Status of macro expansion Date: Thu, 06 Aug 2015 18:03:43 +0200 Message-ID: <87r3ngflpc.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNcS-0003JX-CF for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:02:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNNcO-0003q4-3z for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:02:09 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:45278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNcN-0003pA-Ug for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:02:08 -0400 In-Reply-To: (Fabrice Popineau's message of "Thu, 6 Aug 2015 17:52:10 +0200") 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: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Hello, Fabrice Popineau writes: > I was looking at what text can serve as macro arguments and it seems there > are a couple of restrictions. Namely, if I export the following to html: > > #+MACRO: leftcolumn @@html:
$1
@@ > #+MACRO: rightcolumn @@html:
$1
@@ > > * Title > > ** Section > > {{{leftcolumn( > [[http://www.google.com/]] > )}}} > > {{{rightcolumn( > Line 1 > > Line 2 > )}}} > > Neither one of the macros work. > Is it expected ? (I assume yes) AFAICT the first macro is correctly expanded. What makes you think it doesn't work? However, macros, being objects, cannot cross paragraphs. The second example is really 2 paragraphs, not a macro containing two lines. Regards, -- Nicolas Goaziou