From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: overlay showing computed value of macro? Date: Fri, 23 Nov 2018 07:49:21 -0500 Message-ID: References: <87bm6gm95h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fad0f1057b54672b" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQAtJ-0007yU-5D for emacs-orgmode@gnu.org; Fri, 23 Nov 2018 07:49:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQAtH-0006oB-8S for emacs-orgmode@gnu.org; Fri, 23 Nov 2018 07:49:01 -0500 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:40424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQAtF-0006gr-9z for emacs-orgmode@gnu.org; Fri, 23 Nov 2018 07:48:57 -0500 Received: by mail-io1-xd35.google.com with SMTP id n9so8706877ioh.7 for ; Fri, 23 Nov 2018 04:48:56 -0800 (PST) In-Reply-To: <87bm6gm95h.fsf@gmail.com> 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: Org Mode --000000000000fad0f1057b54672b Content-Type: text/plain; charset="UTF-8" On Fri, Nov 23, 2018 at 4:32 AM Eric S Fraga wrote: > Matt, > > you might like to have a look at how the n() macro was implemented as it > has some similar goals. Check out org-macro-initialize-templates and > org-macro--counter-increment. > ah. no stupid searching backwards through the buffer. just track everyting in a variable. that... is smarter. > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442 > --000000000000fad0f1057b54672b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri= , Nov 23, 2018 at 4:32 AM Eric S Fraga <esflists@gmail.com> wrote:
Matt,

you might like to have a look at how the n() macro was implemented as it has some similar goals.=C2=A0 Check out org-macro-initialize-templates and<= br> org-macro--counter-increment.

ah.=C2=A0= no stupid searching backwards through the buffer.=C2=A0 just track everyti= ng in a variable.

that... is smarter.=C2=A0 <= br>


--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1035-gfeb442
--000000000000fad0f1057b54672b--