GNU bug report logs - #72344
[PATCH] Add a version of cl-once-only which handles lists of forms

Previous Next

Package: emacs;

Reported by: Thuna <thuna.cing <at> gmail.com>

Date: Sun, 28 Jul 2024 21:18:02 UTC

Severity: wishlist

Tags: patch

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Thuna <thuna.cing <at> gmail.com>
Subject: bug#72344: closed (Re: bug#72344: [PATCH] Add a version of
 cl-once-only which handles lists of forms)
Date: Tue, 08 Apr 2025 05:11:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#72344: [PATCH] Add a version of cl-once-only which handles lists of forms

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 72344 <at> debbugs.gnu.org.

-- 
72344: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72344
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Sean Whitton <spwhitton <at> spwhitton.name>
To: Thuna <thuna.cing <at> gmail.com>, 72344-close <at> debbugs.gnu.org
Subject: Re: bug#72344: [PATCH] Add a version of cl-once-only which handles
 lists of forms
Date: Tue, 08 Apr 2025 13:10:05 +0800
Hello,

On Sun 28 Jul 2024 at 11:17pm +02, Thuna wrote:

> (My motivation for this is to use this macro in another patch which I
> didn't want to make longer with out-of-scope additions.  If this is
> considered not worth polluting the `cl-' namespace over I can just write
> the forms by hand so it's fine either way.)

This discussion hasn't been active for almost a year now.
The proposed cl-once-only-multiple is indeed fairly idiosyncratic and
unlikely to see much use, so I think we should probably just close this
request for now.  Going ahead and doing that.

-- 
Sean Whitton

[Message part 3 (message/rfc822, inline)]
From: Thuna <thuna.cing <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Add a version of cl-once-only which handles lists of forms
Date: Sun, 28 Jul 2024 23:17:31 +0200
[Message part 4 (text/plain, inline)]
Attached is the macro `cl-once-only*', which takes a symbol which is
bound to a list of form (such as those contained in a `&rest args' in
`defmacro') and binds that variable to a list of symbols where each
symbol is bound to the result of evaluating (in order) the corresponding
form.  The docstring provides an example which might illustrate what it
does better then I did here.

I don't expect this to be used too often but it could be somewhat handy
in macros with a `&rest args' which are supposed to be evaluated.

(My motivation for this is to use this macro in another patch which I
didn't want to make longer with out-of-scope additions.  If this is
considered not worth polluting the `cl-' namespace over I can just write
the forms by hand so it's fine either way.)

[0001-Add-a-version-of-cl-once-only-which-handles-lists-of.patch (text/x-patch, attachment)]

This bug report was last modified 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.