emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] limitation for macro expansion


From: Nicolas Goaziou
Subject: Re: [O] limitation for macro expansion
Date: Sun, 05 Mar 2017 11:58:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

Yasushi SHOJI <address@hidden> writes:

> I'm can't expand macro with prefix.  Is there any limitation for macro
> expansion listed in the doc?

I don't think so.

> * test
> - It works with chars around like this: Aa{{{author}}}bB.
> - It works with numbers around like this: 12{{{author}}}34.
> - It works with _ around like this: _{{{author}}}_.
> - It works with =__= around like this: __{{{author}}}__.
> - But it doesn't work with 'a_' prefixed like this: a_{{{author}}}.
> - But it doesn't work with '1_' prefixed like this: 1_{{{author}}}.

The two examples above are ambiguous. You should use {{{{author}}}}.

> - Link doesn't work like this: [[file:{{{input-file}}}][Bad link]]

Indeed. This kind of link is not supported as you cannot follow it
(macros are an export-only feature).

Feel free to provide a documentation patch if you think this needs to be
made explicit.

Thank you.


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]