emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Fabrice Popineau <fabrice.popineau@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Status of macro expansion
Date: Thu, 06 Aug 2015 18:03:43 +0200	[thread overview]
Message-ID: <87r3ngflpc.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAFgFV9McP=bwoF9a5qSW=nYrAhr1CQRW20pj6=eo26w=hNpmBA@mail.gmail.com> (Fabrice Popineau's message of "Thu, 6 Aug 2015 17:52:10 +0200")

Hello,

Fabrice Popineau <fabrice.popineau@gmail.com> 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:<div class="left">$1</div>@@
> #+MACRO: rightcolumn @@html:<div class="right">$1</div>@@
>
> * 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

  reply	other threads:[~2015-08-06 16:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-06 15:52 Status of macro expansion Fabrice Popineau
2015-08-06 16:03 ` Nicolas Goaziou [this message]
2015-08-06 16:10   ` Fabrice Popineau

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3ngflpc.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=fabrice.popineau@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).