From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: limitation for macro expansion Date: Sun, 05 Mar 2017 11:58:43 +0100 Message-ID: <87tw786lcs.fsf@nicolasgoaziou.fr> References: <87shmt7495.wl@dns1.atmark-techno.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckTsH-0003TO-5c for emacs-orgmode@gnu.org; Sun, 05 Mar 2017 05:58:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckTsE-0002pU-4t for emacs-orgmode@gnu.org; Sun, 05 Mar 2017 05:58:49 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:58172) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ckTsD-0002pC-VO for emacs-orgmode@gnu.org; Sun, 05 Mar 2017 05:58:46 -0500 In-Reply-To: <87shmt7495.wl@dns1.atmark-techno.com> (Yasushi SHOJI's message of "Sat, 04 Mar 2017 18:58:14 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Yasushi SHOJI Cc: emacs-orgmode@gnu.org Hello, Yasushi SHOJI 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