From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Yasushi SHOJI <yashi@atmark-techno.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: limitation for macro expansion
Date: Sun, 05 Mar 2017 11:58:43 +0100 [thread overview]
Message-ID: <87tw786lcs.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87shmt7495.wl@dns1.atmark-techno.com> (Yasushi SHOJI's message of "Sat, 04 Mar 2017 18:58:14 +0900")
Hello,
Yasushi SHOJI <yashi@atmark-techno.com> 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
next prev parent reply other threads:[~2017-03-05 10:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-04 9:58 limitation for macro expansion Yasushi SHOJI
2017-03-05 10:58 ` Nicolas Goaziou [this message]
2017-03-06 1:56 ` Yasushi SHOJI
2017-03-06 8:22 ` Nicolas Goaziou
2017-03-06 9:28 ` Yasushi SHOJI
2017-03-06 16:41 ` Nicolas Goaziou
2017-03-07 6:18 ` Yasushi SHOJI
2017-03-08 11:30 ` Nicolas Goaziou
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=87tw786lcs.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=yashi@atmark-techno.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).