From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] The "c" Org macro Date: Mon, 22 May 2017 07:58:54 +0200 Message-ID: <87h90dh1pd.fsf@nicolasgoaziou.fr> References: <2ee94a64a94b46259b0da6e7d34675c9@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87y3u7o3dj.fsf@t3610> <87pofjtk4b.fsf@t3610> <2069df8c23bc43f3b04b6e203b96be9d@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87r2zvpyst.fsf@delle7240> <8760guib5i.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCgMv-0001YR-Pa for emacs-orgmode@gnu.org; Mon, 22 May 2017 01:59:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCgMr-0001Mv-Sb for emacs-orgmode@gnu.org; Mon, 22 May 2017 01:59:01 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53365) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dCgMr-0001LY-MA for emacs-orgmode@gnu.org; Mon, 22 May 2017 01:58:57 -0400 In-Reply-To: (Kaushal Modi's message of "Mon, 22 May 2017 03:24:09 +0000") 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: Kaushal Modi Cc: emacs-orgmode@gnu.org Hello, Kaushal Modi writes: > Thanks. I tried it out and it works great, except for one issue I came > across. Thank you for the feedback. > If the n macro is at the BOL, followed by a period, the counter value > resets to 1 even when that macro is specifying the counter value. > Foo > {{{n(a, 7463)}}}. Even though it is surprising, this is not an issue. The thing is macros are expanded at the very beginning of the export process, even before the document is parsed. At this point, the example above is properly expanded to 7463. However, this is then parsed as the first numbered item of a plain list, which is then exported as 1. IOW, there is not much we can do. You may want to insert a zero-width space between the macro and the dot. Regards, -- Nicolas Goaziou 0x80A93738