From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Adding with-gensyms and once-only to subr-x Date: Mon, 11 Apr 2022 13:25:01 -0700 Message-ID: <87o817tlk2.fsf@melete.silentflame.com> References: <87sfqja2eu.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11117"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 11 22:26:06 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ne0bs-0002ep-Ba for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 22:26:06 +0200 Original-Received: from localhost ([::1]:42512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ne0bq-0006bs-Vj for ged-emacs-devel@m.gmane-mx.org; Mon, 11 Apr 2022 16:26:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne0av-0005v5-AG for emacs-devel@gnu.org; Mon, 11 Apr 2022 16:25:05 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:40755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ne0at-0003n5-Gb for emacs-devel@gnu.org; Mon, 11 Apr 2022 16:25:05 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7AC6A5C02A4; Mon, 11 Apr 2022 16:25:02 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 11 Apr 2022 16:25:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1649708702; x=1649795102; bh=jI yLj+0mxKB8RuoQMtplNTvRjgLAEK3pPjTkC4eJvJ8=; b=c7CuI4sP5RPCYdIEY8 7AryawBYpwKZPhVh1cihBNGDqjuNXCtSny4hcw4s94dZ6B1e+6Zhe6tI/lplGO8l xSnZdgUZISLvNbzR+NzzZM8DUmMGa/+1Kf/JV/6zT0HxpfBE2jF+XGlXYk4T5H4m vqHKrS90ttGbVt9rNlM5xpsQLKnsuU5T7uz9jo9P+3h/NNGwZGbn1cHUKJGbC9q9 swsctfQL5a3q6OnZA+WMX9QTGr98NTBs0Jo7Eds7xm6Yq/y8NhFkav/Urky6eYgQ Ct1QBOPV1dwaxOBpLuFJMnK6vgF6ioVh03D1XMjjt3xGHl3PEQdHDS4gno2r3kxl R4NQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1649708702; x= 1649795102; bh=jIyLj+0mxKB8RuoQMtplNTvRjgLAEK3pPjTkC4eJvJ8=; b=K LJPqL4X/3Fkb+3txXBIUljBggZgcrLM7QWjmphictNZqXOkCoXgqZNTlV55XJzrL Y4Fq9t3HQv5jg2Va63mwX2W12Zs8q80TMax33IJazJhgwy3TpcCqG76OUk0OEttd mMNnMfjhRQZteuW9tNkPCO4wm0u9ZDKLTFK7DLgddCSz2YTNQyvyPYkU5kGeU1ht ft0SobIefI2yWIrfVj+78wDA4i3aAdvkTl8nfgdLHB41+4AOWtGD4re3pQBgXttk a2ZiS4SI/r2RS3i9zRS39OJKYokaHFim4yqTJJG5gpputaJQqItD5otGA9Sbv9Mv 9F9KtIPdynmk5uQuurfNA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekiedgudehudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffujghffgffkfggtgesthdttddttdertdenucfhrhhomhepufgvrghn ucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpeelgeeggfdvieejvdfhudfggeetgfekkeeuieeljeejhedu geegfeetgefhueffkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Apr 2022 16:25:02 -0400 (EDT) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 1B7547E3DB1; Mon, 11 Apr 2022 13:25:01 -0700 (MST) In-Reply-To: Received-SPF: pass client-ip=66.111.4.26; envelope-from=spwhitton@spwhitton.name; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288247 Archived-At: Hello, On Mon 11 Apr 2022 at 03:11PM -04, Stefan Monnier wrote: >>> How 'bout making `macroexp-let2*` accept the shorter form as in the >>> patch below? >> Nice. Good with me. (I thought about extending macroexp-let2* but >> didn't think about the idea of making the first argument optional.) > > Pushed to `master`. Cool, I'll add the cl-once-only alias shortly. Are you okay with 'with-gensyms' in subr-x? Another option is to call it macroexp-with-gensyms and add a cl-with-gensyms alias, or add cl-with-gensyms alone (the name is similarly standard). But as the macro is much simpler and more commonly used, it would be nice to have the shorter name. -- Sean Whitton