From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Douglas Lewan Newsgroups: gmane.emacs.help Subject: Re: Compiling a recursive macro Date: Thu, 11 Jun 2020 18:21:55 -0400 Message-ID: <36ad9384-bfe0-e250-153e-e5872e99dc65@gmail.com> References: <22b55d6d-f719-98d9-f8c8-e72e7fc43497@gmail.com> <87lfkt47bl.fsf@web.de> <87ftb1469o.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="99149"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 12 00:22:43 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jjVas-000Phq-NY for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 12 Jun 2020 00:22:42 +0200 Original-Received: from localhost ([::1]:52650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjVar-0007rt-MA for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 18:22:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjVaI-0007qy-Go for help-gnu-emacs@gnu.org; Thu, 11 Jun 2020 18:22:06 -0400 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:33672) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjVaG-0002Dw-Rm for help-gnu-emacs@gnu.org; Thu, 11 Jun 2020 18:22:06 -0400 Original-Received: by mail-qt1-x835.google.com with SMTP id e16so5764832qtg.0 for ; Thu, 11 Jun 2020 15:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=uFdcKANxHZjjTT3uaDx4ICFzuHhth4tfupNvLxwxtSo=; b=kumU6ozVToPhFTI7rjDrEkpFiymQ/ZeivD7+QYwCAR/C7773cBLS4M0hf/ESy4G51n Tv71CQVsEZ+VZmhoDPn2rSegQ63QtN5N9qBYH3ti+Pr+sEvmUvemCUPi6tcrAzzPJAQ2 Mi0w82Thnp6DmsKpdzlZMnqkp3kQpjx+mnS270WFnuosJLseqW+dK+zsTiikSqlrcKtk D2Yw8kLPxh+HZzBojjT6U5Bi47QV1QYzF4VQtiqSJnGJu/8GIlJau9LsVlDR6m7ztYhA YqBTjxwh+/Aho5jRQu6XRBJXps8hW+Q2TwNEvXPtR3IjK2vYmjqSipO3c9Ll3wm3ee+H PdRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=uFdcKANxHZjjTT3uaDx4ICFzuHhth4tfupNvLxwxtSo=; b=FBme7l2NTVLBQznXKs4/gTaGuXl/+BEeB6GwsFC8+e9r+QCZrgCByYvabfGPzWOwqC mkwgmTHy5D+bC2iTIuZB7M14xb4MfUt24LRse+BCwCp371C1Vh23wFcpuYolaag7Cedl IbhKLZaJ7GME0PTQ3rl4N/C9Irg0LNVHKJ4+mgIeR6Il7x0NKpDn0KBqlAcvnMgK2Dc5 QxA+AtKw/hfXsnihTeqFJgugSvBjbtXoem1EerNJtXPlMAYLAfbBWvSfWYKNza9rW7Li 90jzr6WBicDe9+eFZv/HxBVOjhdi+h7o6NWNGh+kXZ13LExPTX3fATipkHhaqG4DENiy Pr6g== X-Gm-Message-State: AOAM5303Sif2O7/1K7/o+JJR6IN9XNE8PFn9yiElAL40g8GSnGaXl/ZT o1E3fV1a0MN3JkmSS71sRSRVcUkRrg== X-Google-Smtp-Source: ABdhPJxTg/XkCr4pOiWYlR0iNWyDKhvr9OYSqcBv0iSflqTPf2kBqt88onkwIT/AgykBRxRV08kOcA== X-Received: by 2002:ac8:1c71:: with SMTP id j46mr216720qtk.60.1591914117456; Thu, 11 Jun 2020 15:21:57 -0700 (PDT) Original-Received: from [192.168.43.104] ([172.58.236.143]) by smtp.gmail.com with ESMTPSA id g185sm3176916qke.122.2020.06.11.15.21.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jun 2020 15:21:56 -0700 (PDT) In-Reply-To: <87ftb1469o.fsf@web.de> Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=d.lewan2000@gmail.com; helo=mail-qt1-x835.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123345 Archived-At: On 6/11/20 5:55 PM, Michael Heerdegen wrote: > Douglas Lewan writes: > >> The macro itself has to establish a new variable for each buffer in >> the tree of buffers. > Are these variables buffer-local? If not - could you use an alist with > buffers being the keys instead and save that in one variable? Why do > you want one declared variable per buffer? They are buffer-local. Definition of such a variable spans the tree of buffers in question. I suppose I could just define them in the root buffer, but then I'd also need to use a specialized getter instead of the variable itself. The latter definitely seems preferable to me. If there's a way to do this with emacs lisp's natural scoping, I'm more than happy to learn. -- ,Doug d.lewan2000@gmail.com (908) 720 7908 If this is what winning looks like, I'd hate to see what losing is.