From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thuna 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 14:28:30 +0200 Message-ID: <874j7xzvgx.fsf@gmail.com> References: <87y15l1aj8.fsf@gmail.com> <8734nsk72i.fsf@melete.silentflame.com> <87plqw0y9j.fsf@gmail.com> <87ikwi5neo.fsf@melete.silentflame.com> <871q35mdrd.fsf@gmail.com> <871q321l7d.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="33789"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72344@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 06 14:31:04 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 1sbJLD-0008aJ-0x for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Aug 2024 14:31:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbJKr-00022y-T9; Tue, 06 Aug 2024 08:30: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 1sbJKp-000222-Tk for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 08:30:39 -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 1sbJKp-0005Eo-Hd for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 08:30: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=bqPIQ6+voRJZuqqo0Ns73MvjYOhaSe1Ao3X109B7hKs=; b=k9mdz+mew2umtz1C6IGlsJIycOSq+VFb4BRJ89w3MP68v8SZ7t4vDr/3HuV7KB6Yz1QcRfbCIcAYOHb5AS3hDoaD/oftP7JxP/NrA5MIEAXrpa/Cuer7/o8W+e1a7FaQw/NWVktEMVYjYZbxED+kmhtYiHFZOO7TZeiSYDsKrsxIaBUSLxIOJSwOIuvNi3ZkvxLk0kj6aCkHjYmQkqD2eLYZtmgRflRwz9AwJmiNf2kWlkIKBh3E7r5FBNio68JzIjBy4UJ6iKGoZufaLUXWsig1GxV5ko3Uye4Bx2lmrT7LSQzs6egvX2EUKhx5iCVS2TMg6Rk+/Tx9HoSIOgF47w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbJLC-0003Hg-J7 for bug-gnu-emacs@gnu.org; Tue, 06 Aug 2024 08:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thuna Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Aug 2024 12:31: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.172294740512447 (code B ref 72344); Tue, 06 Aug 2024 12:31:02 +0000 Original-Received: (at 72344) by debbugs.gnu.org; 6 Aug 2024 12:30:05 +0000 Original-Received: from localhost ([127.0.0.1]:60380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbJKH-0003Eh-FZ for submit@debbugs.gnu.org; Tue, 06 Aug 2024 08:30:05 -0400 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:54709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbJKF-0003Dn-6E for 72344@debbugs.gnu.org; Tue, 06 Aug 2024 08:30:04 -0400 Original-Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-3683178b226so304717f8f.1 for <72344@debbugs.gnu.org>; Tue, 06 Aug 2024 05:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722947313; x=1723552113; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=bqPIQ6+voRJZuqqo0Ns73MvjYOhaSe1Ao3X109B7hKs=; b=S5Eg+fWyPznMGWZ95obido2FyhcDdZi9eUf4C2pLRTptu/uNlwcyseRa//Mtyc2Dwp Pc7TtiOmOM7DMNnrEpKZCeXkkP6ImyeoUbOKwB0vaNUuqE9dbnGDe1I1cQGoBCTG1AWo gHSOVxSH+ZG64BG3e6kCci+1kuJrdhOJR3C5MfyA4G8oqmA7SAbjAh5SQxLJ+oCUKESW G9TlzLS19jtv22JeHYzgO1yCu6JUxn6QZeHQjpBOOrgN6T6MIglNOJdFn1EjjAK5BFNh DWlbLt0kh0k0zwObA2EzPjrTfp67/6Sj14KMJ0UYTxAog2y7hXxKyFm16b/njklylESN Hujg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722947313; x=1723552113; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bqPIQ6+voRJZuqqo0Ns73MvjYOhaSe1Ao3X109B7hKs=; b=XpO2UqDsGt2P+J2G82RGyD3nZPK7uPVaTB4iDqpHfnRYGFAFHKmKo5Nk8t9d+a1TDi 1utDCp1+ws0jmwpTQFvhkdQkNE/g1S27vPyQpJxtoo3mtipdGaPTZ1z3jJ0MiJBmdGsL F3LQkO0KieiGeHUes2vFG7qF5peRObMYVoxpcVKy+HFVQ6lLvftB8XbgkuNTip/NoivT iYgv4KZ91kZ66UHPu1qaKljAORBlruWS33tHxw6pWdY9+XFDZqXLwJfLGg7GhWP+Wk8P 8lNHu+X5r+2kTOYziJLXLHlHeiRHNqdxKLERyMo4fJUIWqA8Klee5/t5QaYX/OMIYwop 6aNQ== X-Gm-Message-State: AOJu0YzuONgHpbl2MopqQQeAuimx/3fEPiPzYqcRbd+nUC7rRNdRcMAd Lcvtypjn069yxgjp2SH6DflJlt+WhNOGf/6Gvw9LvQyk3IYEKOMMduRQ1A== X-Google-Smtp-Source: AGHT+IEvz0cXeJilwebh3Hgx4jpZC+cK6qo9v2vcFk4aKr7JdydDvRcNVvVZdt3JYKseMR3tWgHbcw== X-Received: by 2002:adf:e98a:0:b0:368:4d33:9aac with SMTP id ffacd0b85a97d-36bbc0fc757mr8456282f8f.31.1722947312804; Tue, 06 Aug 2024 05:28:32 -0700 (PDT) Original-Received: from thuna-lis3 ([85.106.105.81]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36bbd02a451sm13038952f8f.63.2024.08.06.05.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 05:28:32 -0700 (PDT) In-Reply-To: <871q321l7d.fsf@melete.silentflame.com> 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:289824 Archived-At: > Looks good. I wonder if it might be easier to read if you could somehow > extend the example I used for cl-once-only ? I'll look into it, though the whole thing really needs a do-over, and I am not sure if I am the right person for that. I'll whip up another draft in a day or so and we can see how that looks. >> (Do we want a NEWS entry also?) > > Yes, probably appropriate. What about something like this? +++ *** New macro `cl-once-only*'. This macro is a version of `cl-once-only' which takes a list of forms. This can be used when there are an arbitrary number of arguments which need to be evaluated exactly once. Also, I put it under "Lisp Changes in Emacs" but is that right? >>> 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. > > cl-once-only-rest, as a reference to &rest ? If `cl-once-only-multiple' is fine by you then I would prefer that over `cl-once-only-rest' and `cl-once-only-mult'. It would help to get more suggestions, but I don't think anyone else will be chiming in at this point.