From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: TIL about use of eval in user Org macros.. Documentation? Date: Mon, 25 Dec 2017 11:26:06 +0100 Message-ID: <87tvwf14u9.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTPxT-0001BC-P3 for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 05:26:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTPxS-0004Ih-Uy for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 05:26:11 -0500 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:45529) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eTPxS-0004HY-OT for emacs-orgmode@gnu.org; Mon, 25 Dec 2017 05:26:10 -0500 In-Reply-To: (Kaushal Modi's message of "Wed, 20 Dec 2017 22:30:16 +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-org list Hello, Kaushal Modi writes: > #+MACRO: sec (eval (concat "" (number-to-string > (org-macro--counter-increment $1 $2)) "")) Or, #+MACRO: sec @@html:@@{{{n($1,$2)}}}@@html:@@ > 1. Can you please document the use of eval form in Org macro definitions in > the Org manual(.org)? Its awesome wasn't evident to me until I read that > commit message. Done. Regards, -- Nicolas Goaziou