From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Macro question
Date: Fri, 23 Oct 2015 22:24:07 +0200 [thread overview]
Message-ID: <CAFgFV9MkpEojs081BQpzYyLcLQSjZRHjKJv0LmwdmXrwq+2OBw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 713 bytes --]
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 could output text that needs the <p> ...
</p>, 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
[-- Attachment #2: Type: text/html, Size: 1018 bytes --]
next reply other threads:[~2015-10-23 20:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 20:24 Fabrice Popineau [this message]
2015-10-23 20:37 ` Macro question Nicolas Goaziou
2015-10-23 21:33 ` Fabrice Popineau
2015-10-23 22:18 ` Nicolas Goaziou
2015-10-24 9:39 ` Fabrice Popineau
2015-10-24 9:53 ` Nicolas Goaziou
2015-10-24 11:37 ` Fabrice Popineau
2015-10-24 11:44 ` Nicolas Goaziou
2015-10-24 17:02 ` Eric S Fraga
2015-10-25 9:45 ` Fabrice Popineau
2015-10-25 12:04 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFgFV9MkpEojs081BQpzYyLcLQSjZRHjKJv0LmwdmXrwq+2OBw@mail.gmail.com \
--to=fabrice.popineau@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.