Re: [O] Status of macro expansion

2015-08-06 Thread Nicolas Goaziou
Hello,

Fabrice Popineau fabrice.popin...@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



Re: [O] Status of macro expansion

2015-08-06 Thread Fabrice Popineau
2015-08-06 18:03 GMT+02:00 Nicolas Goaziou m...@nicolasgoaziou.fr:


 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:div class=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 (looking into old mails from the list,
that might have work at some point quite far in the past).

Fabrice