From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Fran=C3=A7ois_Pinard?= Subject: Macros [was: Re: ATTR_HTML for a clickable image, howto?] Date: Sat, 19 May 2012 21:00:58 -0400 Message-ID: <86r4ufr7hx.fsf_-_@mercure.progiciels-bpi.ca> References: <86pqbrywgr.fsf@iro.umontreal.ca> <87r4w63602.fsf@gnu.org> <86vclekyqo.fsf@iro.umontreal.ca> <4F7EAED9.2040804@christianmoe.com> <4F803DDC.20808@christianmoe.com> <4F853CCD.4020601@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVuW5-0000Ic-Kr for emacs-orgmode@gnu.org; Sat, 19 May 2012 21:01:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVuW4-0003lr-3Z for emacs-orgmode@gnu.org; Sat, 19 May 2012 21:01:01 -0400 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:60677 helo=mercure.progiciels-bpi.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVuW3-0003l6-U0 for emacs-orgmode@gnu.org; Sat, 19 May 2012 21:01:00 -0400 In-Reply-To: <4F853CCD.4020601@christianmoe.com> (Christian Moe's message of "Wed, 11 Apr 2012 10:11:57 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Christian Moe writes: > There are other drawbacks [to macros], such as needing to > backslash-escape any commas (as in the above example). Oh, thanks! This (partly) replies to the message I sent a few minutes ago. Before sending that message, I checked in the Org manual, and the manual is silent about the possibility of such escaping. The manual is also silent about nesting, which has been mentioned elsewhere in this thread. The examples in the manual do not hint either about whether newlines are allowed or not in macro arguments. In fact, the manual section "Macro replacement" says very little, so when I initially read it, I guessed that macros are only usable in very simple cases. However, the last statement says that macros can be used to construct "complex HTML code". Yet, the definition method at the beginning suggests that macro definitions have to fit on one line, and this seriously limits the complexity of what we can do with them. So, on initial reading, I just decided I understood nothing about them :-). If macros are there to stay in Org, it might be worth documenting a more complete specification about how to define and use them. Fran=C3=A7ois