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.bugs Subject: bug#72344: [PATCH] Add a version of cl-once-only which handles lists of forms Date: Tue, 06 Aug 2024 09:41:58 +0800 Message-ID: <871q321l7d.fsf@melete.silentflame.com> References: <87y15l1aj8.fsf@gmail.com> <8734nsk72i.fsf@melete.silentflame.com> <87plqw0y9j.fsf@gmail.com> <87ikwi5neo.fsf@melete.silentflame.com> <871q35mdrd.fsf@gmail.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="38466"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72344@debbugs.gnu.org To: Thuna Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 06 03:43:05 2024 Return-path: Envelope-to: geb-bug-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 1sb9E7-0009nf-PO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Aug 2024 03:43:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sb9Dl-0005ZY-TY; Mon, 05 Aug 2024 21:42:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sb9Dj-0005ZN-Pk for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 21:42:40 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sb9Dj-0001W0-Hn for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 21:42:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=och8mPr7YrrZN1e/GnTTht/9nGD84cPa+eMHXGrQI9Q=; b=e6XdWQWtL0x4Y8MJFvKUPhCdryMCFvyzeKONmZ/uw9UPgXaedXklDUo2xVa+1jB/m8rGgWJxCLAKzcc/i3HtX8T7GUBtTOCD9TFcdk+pBqJtFEtUlbpvyX2vjoB3nsstLx60ZccnsPWt70bsgsJJJwqx7Bg/8VRyrvOYm/KNkCrZG7Wh44hZPK8ouYUxf//fozLjPjxDCJQ5c0EdRroEFHzWk/zauiSFG2cNxL/u/xrhIR3PLmklw5LsijIaXuh0RKaapjQtP2uy57lOrw/nlBczzMyZZlu/9k78m5MYS4v3Xhf/JK49fX3ZeqVT8yZtK0JfSeiMmh86iOVyjNpE0A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sb9E6-0006BZ-7F for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2024 21:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Aug 2024 01:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72344 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 72344-submit@debbugs.gnu.org id=B72344.172290855623728 (code B ref 72344); Tue, 06 Aug 2024 01:43:02 +0000 Original-Received: (at 72344) by debbugs.gnu.org; 6 Aug 2024 01:42:36 +0000 Original-Received: from localhost ([127.0.0.1]:59618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sb9Df-0006Ae-NV for submit@debbugs.gnu.org; Mon, 05 Aug 2024 21:42:36 -0400 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:57696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sb9Dd-0006AM-8M for 72344@debbugs.gnu.org; Mon, 05 Aug 2024 21:42:34 -0400 DKIM-Signature: a=rsa-sha256; b=D1APaRvg/F/tYVI4ijlW1Igh7WTJmzMCh8uusE103czSwA6z8eA4f8T+64IasuF0H5RSJZefk0C81eCzTNRMt1H8lNwqCRqYsxJEGJuS/1B0hiTEBcWGDvxfaDHYhTra5y/vT1h0h90jQ9V5Eypc+b4kJcV6KVHmwuJQP6FRtMKvwmOdQmYk6QB1lP6C2iIPi4BPxWXouYdUVWnG0PoufQueNxm6HixJhN1gq0zVRlLLvjMMj8QdEkoHu8qST4pi4aiabAn66tMFk1LZHrQyZS+K8mXhqg57TEhNGkFEe30bjyOORBo8IL/Lr1A/kBOrqTsMclBuzjP4FisU1w7xWg==; s=purelymail3; d=spwhitton.name; v=1; bh=FSiWdToayv4nDtg+i7rHv5SWyF4aYOkMWwe5ptOhVgQ=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=LmOg827TptGDN9ePlxfAPkR/5UvvsnjTWElnnhdHhKkplAI0uEpP6k4hiToaYF2TFv4t6penC7t3YC36/xSwfNWV/FYlvjA7Y+3WbkPG8b8RABZ2SpyxZItWnL/89MKos8dtIlM5tPyccdzCYIpU3FPcFiYZziiFLIAm2WtjM47WmUQIf/DLnFwi93zFYYYDovBjt87B9BuXkCQe5oT+CZzLf/i+6XlN4W48jgqpkpW1r5Wg9T5OwUgg5Ig12IUt+tdNr6fvc5/Me27QRlI8v3nUiRh0aO0GhesJG65I+UTwEu6UjDFPvsc8AWvsOG7SPYiV3Mp6Z9VrmpCwZ4Ei7g==; s=purelymail3; d=purelymail.com; v=1; bh=FSiWdToayv4nDtg+i7rHv5SWyF4aYOkMWwe5ptOhVgQ=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: 72344@debbugs.gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1554353320; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 06 Aug 2024 01:42:01 +0000 (UTC) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 24BF67E4C3F; Tue, 6 Aug 2024 10:41:58 +0900 (KST) In-Reply-To: <871q35mdrd.fsf@gmail.com> (Thuna's message of "Sun, 04 Aug 2024 00:40:22 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289810 Archived-At: Hello, On Sun 04 Aug 2024 at 12:40am +02, Thuna wrote: > I've written a draft for what it could look like. It needs proofreading > and editing, but it should be a fine-ish place to start from at least. > It uses `cl-once-only*' as the name of the macro but that's just a > placeholder for now. Looks good. I wonder if it might be easier to read if you could somehow extend the example I used for cl-once-only ? > (Do we want a NEWS entry also?) Yes, probably appropriate. > I've also made it so that the first argument can either be of the form > (VARIABLE FORMS) or VARIABLE - how it worked before - which stands for > (VARIABLE VARIABLE), so as to keep parity with `cl-once-only'. Nice. >> I think we should reserve the starred name for now. As you said, your >> macro doesn't come up often, and we might later come up with a variant >> of cl-once-only that we want to use very often. > > I see that point, and it is completely fair. I have no problem > conceding the starred name. Cool. >> cl-seq-once-only ? > > How about `cl-once-only-multiple'? The name should probably be of the > form `cl-once-only', rather than `cl--once-only' I > think. There are already several cl-multiple-... so maybe cl-once-only-mult ? cl-once-only-multiple is fine with me, though. -- Sean Whitton