Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:

> Hello
>
> Eric Abrahamsen <e...@ericabrahamsen.net> writes:
>
>> After googling for a while, I also thought this might work:
>>
>> #+MACRO: bubba (eval (format-time-string "%Y" property{{{TIMESTAMP}}}))
>>
>> {{{bubba}}}
>>
>> But the nested definition isn't expanded, either with or without
>> quotes.
>
> As you noticed, you cannot nest macros. You can use macros within macro
> definitions, tho. Alas, it will not work with (eval ...) templates,
> since those make no assumptions about the rest of the template and
> simply use `read' on it.
>
> Anyway, as pointed out in this thread, if you take the (eval ...) path,
> you don't really need macros: you're in Elisp.

Thanks to both of you for the pointers! This is my first time trying to
do anything non-trivial with macros, and the orientation is very useful.

Eric


Reply via email to