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 17:38:13 -0400 Message-ID: References: <22b55d6d-f719-98d9-f8c8-e72e7fc43497@gmail.com> <87lfkt47bl.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="47026"; 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 Thu Jun 11 23:39:32 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 1jjUv4-000C4h-V4 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 23:39:30 +0200 Original-Received: from localhost ([::1]:38086 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjUv3-00067p-4o for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 11 Jun 2020 17:39:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjUu0-000568-6l for help-gnu-emacs@gnu.org; Thu, 11 Jun 2020 17:38:24 -0400 Original-Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]:36540) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjUty-000115-KA for help-gnu-emacs@gnu.org; Thu, 11 Jun 2020 17:38:23 -0400 Original-Received: by mail-qv1-xf29.google.com with SMTP id x16so3466101qvr.3 for ; Thu, 11 Jun 2020 14:38:17 -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-language; bh=XSDmglVTIsXmi2avh784PWLCvVQSWllI6npCRyU906o=; b=QrgPQu/btQsT+2Sd0QteZnkuvVvC3BzU/I7LewRFCimrn7CRk4cPisbHBguA20rOBh qDsLmPfajyb3NJmWW8mYzklui1seJIvNNMscHkroRLzh5ox2GcSyq/kXr7s1RxtJSV6C BaaHtE7Y3RhLFDF/6M8piP6nKsRW4L2rkSx5E9NRpP82SaPboXT1lWkMiPu+sCdy4U47 S7rCBLCgREmzyXvKzAQ+1mthFd4aT91Hq8Qp+30Z0xKeFteczwMRo7nc/7cScs3bfFEc QBGk6azwMLpQp9ivBBjXdZRFnL2BVPjc1GU7HdE2nzmVq/0bWC5MO/527wcIHJbCawuh bD9w== 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-language; bh=XSDmglVTIsXmi2avh784PWLCvVQSWllI6npCRyU906o=; b=OjXh7j3tI0cHLh9Rfo3iSfuoYxnwxGhqyUGx+F2MnRN1zsFMMeqiuAvmlYm8MVzp+j ZAJlvNB52g6wIvLC5+4jqWumXp742Pt03CUVHPyamovmIkbdXNCZBPRc5Atny6etH6/R WqF11CBADtGLkHtO2ygbVmKm1/gPR71dk6kP/UfsCyeoqeoAlf+UK09oNOU6CFi6pUBC jEbT5GEnxMdobheMS4Y6Et12W3pGEQDO1hvIfk+uCNdUo2HATrAjdpsvNq4+1OEw2Vd1 Pp4ZPh7AauuOrlJkSXmp+Ab6iTjikE4jaDqePbcwDNYaIB5lGI8sw7gLYhGWdEjmIqjk agaQ== X-Gm-Message-State: AOAM533mm92SCyJZUjTa9GfZB80bPd4Jgk7wqkpdjYOtFw/7ulR7vFWy nkgl8caaPTGgSI9vXsa9x4O0gOswCA== X-Google-Smtp-Source: ABdhPJwDi4LbB1McncSp3qBJWmYqF2BCofzfMgpBGMN9YYMMA2kgecZYNxtnDU6Sec4dGdKxuyvlpg== X-Received: by 2002:ac8:3036:: with SMTP id f51mr37299qte.226.1591911496196; Thu, 11 Jun 2020 14:38:16 -0700 (PDT) Original-Received: from [192.168.43.104] ([172.58.236.143]) by smtp.gmail.com with ESMTPSA id c6sm3015503qkg.93.2020.06.11.14.38.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jun 2020 14:38:15 -0700 (PDT) In-Reply-To: <87lfkt47bl.fsf@web.de> Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::f29; envelope-from=d.lewan2000@gmail.com; helo=mail-qv1-xf29.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:123340 Archived-At: On 6/11/20 5:32 PM, Michael Heerdegen wrote: > Douglas Lewan writes: > >> (defmacro mmm () >> (cond ((at-root-p) >> do  tree-wide stuff) >> (t >> (with-current-buffer root (mmm))) > That really looks like this shouldn't be a macro. Why do you want this > to be a macro? The macro itself has to establish a new variable for each buffer in the tree of buffers. It's somehow not natural (to me) to pass 'new-var to a defun that's supposed to act like (defvar). -- ,Doug d.lewan2000@gmail.com (908) 720 7908 If this is what winning looks like, I'd hate to see what losing is.