From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Macro question Date: Fri, 23 Oct 2015 22:24:07 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d211af076800522cb6513 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpit3-0004GL-6f for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 16:24:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpit2-0001TO-DI for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 16:24:29 -0400 Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:34938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpit2-0001TE-9s for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 16:24:28 -0400 Received: by oifu63 with SMTP id u63so29494659oif.2 for ; Fri, 23 Oct 2015 13:24:27 -0700 (PDT) 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: "emacs-orgmode@gnu.org" --001a113d211af076800522cb6513 Content-Type: text/plain; charset=UTF-8 I was wondering if macros could be used to output raw html code, but that doesn't seem to be the case. Namely: #+macro: bfoo @@html:
@@ #+macro: efoo @@html:
@@ The macros {{{bfoo}}} and {{{efoo}}} are expanded surrounded by

...

. This is quite a limitation. Is it the intended behavior? If the reason is that the macro could output text that needs the

...

, then the problem is the point at which macros are expanded in the flow. An option would be to allow #+html: in the macro, but that doesn't work. The #+html: directive gets straight on the output. Sorry if this has already been discussed here. (I vaguely remember some discussions about recursive macros) Fabrice --001a113d211af076800522cb6513 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I was wondering if macros could be used to output raw html= code, but that doesn't seem to be the case.

Namely:=

#+macro: bfoo @@html:<div class"foo"= >@@
#+macro: efoo @@html:</div>@@

The macros {{{bfoo}}} and {{{efoo}}} are expanded surrounded by <= p> ... </p>.

This is quite a limitation. = Is it the intended behavior?
If the reason is that the macro coul= d output text that needs the <p> ... </p>, then=C2=A0
the problem is the point at which macros are expanded in the flow.
An option would be to allow #+html: in the macro, but that doesn't w= ork. The #+html:
directive gets straight on the output.

Sorry if this has already been discussed here.
(I= vaguely remember some discussions about recursive macros)
Fabrice

--001a113d211af076800522cb6513--