From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] The "c" Org macro Date: Tue, 09 May 2017 12:35:43 +0200 Message-ID: <8737ce5ncw.fsf@nicolasgoaziou.fr> References: <2ee94a64a94b46259b0da6e7d34675c9@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87y3u7o3dj.fsf@t3610> <87pofjtk4b.fsf@t3610> <87bmr35lzs.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d82Uh-00059V-9c for emacs-orgmode@gnu.org; Tue, 09 May 2017 06:35:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d82Uc-00052l-E2 for emacs-orgmode@gnu.org; Tue, 09 May 2017 06:35:51 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60538) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d82Uc-00052U-6g for emacs-orgmode@gnu.org; Tue, 09 May 2017 06:35:46 -0400 In-Reply-To: (Carsten Dominik's message of "Tue, 9 May 2017 09:35:01 +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" To: Carsten Dominik Cc: org-mode list Hello, Carsten Dominik writes: > I like the idea of these counters, and I have use-cases for them. Great. > Here is a proposal for the manual entry > > This macro implements custom counters by returning the number of times > the macro has been expanded so far while exporting the buffer. > You can create more than one counter using different @var{NAME} values. If > @var{RESET} is non-empty, the specified counter is reset to the value > specified if it is a number, or 1 otherwise. You may leave @var{NAME} > empty to reset the default counter will be reset. Thank you. I removed the last "will be reset" and updated my patch accordingly. I don't post it, however, so as to not flood the ML. > A question regarding the last sentence of this proposed manual entry: > > is {{{c(,2)}}} allowed to reset the default counter? I think is should be, > but I have not tested this. It does reset the default counter, indeed. There is no other way to reset it. Regards, -- Nicolas Goaziou 0x80A93738