From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Status of macro expansion Date: Thu, 6 Aug 2015 18:10:59 +0200 Message-ID: References: <87r3ngflpc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1130caea0df56d051ca6c58a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNlL-0004ny-C9 for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:11:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNNlI-0000Lx-8s for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:11:21 -0400 Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:34037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNlI-0000LR-2X for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:11:20 -0400 Received: by obbfr1 with SMTP id fr1so22645686obb.1 for ; Thu, 06 Aug 2015 09:11:19 -0700 (PDT) In-Reply-To: <87r3ngflpc.fsf@nicolasgoaziou.fr> 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 , "emacs-orgmode@gnu.org" --001a1130caea0df56d051ca6c58a Content-Type: text/plain; charset=UTF-8 2015-08-06 18:03 GMT+02:00 Nicolas Goaziou : > > AFAICT the first macro is correctly expanded. What makes you think it > doesn't work? > Arrgh. My mistake. It expands as I expected if I write the macro as: #+MACRO: leftcolumn @@html:
@@$1@@html:
@@ However, macros, being objects, cannot cross paragraphs. The second > example is really 2 paragraphs, not a macro containing two lines. > > Ok, so thanks for the confirmation (looking into old mails from the list, that might have work at some point quite far in the past). Fabrice --001a1130caea0df56d051ca6c58a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2015-08-06 18:03 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.f= r>:

AFAICT the first macro is correctly expanded. What makes you think i= t
doesn't work?
=C2=A0
Arrgh. My mistake.<= /div>
It expands as I expected if I write the macro as:

<= /div>
#+MACRO: leftcolumn @@html:<div class=3D"left">@@= $1@@html:</div>@@


However, macros, being objects, cannot cross paragraphs. The second
example is really 2 paragraphs, not a macro containing two lines.


Ok, so thanks for the confirmation (lo= oking into old mails from the list, that might have work at some point quit= e far in the past).

Fabrice
--001a1130caea0df56d051ca6c58a--