all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug] Macro expansion not recursive
@ 2014-01-30 11:32 Sebastien Vauban
  2014-01-30 11:57 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Vauban @ 2014-01-30 11:32 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

It was said that "Macro expansion is already recursive: the template can
be another macro."  Though, my example does not work: the second macro
call is exported almost "verbatim".

--8<---------------cut here---------------start------------->8---
#+MACRO: highlight @@html:<span style="background-color: $1;">$2</span>@@
#+MACRO: hl {{{highlight(#FFFF00,$1}}}

{{{highlight(yellow,This is important!)}}}

{{{hl(This is important!)}}}
--8<---------------cut here---------------end--------------->8---

Am I missing something?

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-30 12:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 11:32 [bug] Macro expansion not recursive Sebastien Vauban
2014-01-30 11:57 ` Nicolas Goaziou
2014-01-30 12:15   ` Sebastien Vauban

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.