From unknown Tue Aug 19 02:59:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50704: Feature request: Add ensure-list in cl-lib Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2021 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 50704@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs Received: via spool by submit@debbugs.gnu.org id=B.163216701915278 (code B ref -1); Mon, 20 Sep 2021 19:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Sep 2021 19:43:39 +0000 Received: from localhost ([127.0.0.1]:44101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSPCU-0003yM-OI for submit@debbugs.gnu.org; Mon, 20 Sep 2021 15:43:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:46230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSPCT-0003yD-5U for submit@debbugs.gnu.org; Mon, 20 Sep 2021 15:43:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSPCS-0001nl-Tu for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2021 15:43:36 -0400 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:35670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSPCP-0003R0-CK for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2021 15:43:35 -0400 Received: by mail-qt1-x829.google.com with SMTP id c20so6419933qtb.2 for ; Mon, 20 Sep 2021 12:43:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=ImnI9Ri08mfEo56c4akNwPmSzRmGSSDN3cj4sF9Q8UI=; b=iEA/n2eUeiIVOrMjtbQhV1/Op0wQ5SwIHvgVohuHhCjP5Ipbi/7dTsfesYf29PIRp8 YfBCKw4raC6dni/w1Y/ZpXtoqUmJqNkoUlbZvzI+ILbN6l9JMkJQCM6PIiQW61AXbvzh DImOJ288UFIbWGfyKjyYGt86D69lS9X9KsxNg2YCfH6inOp4GUpWvbeMuWIA4nHO/XJu MU5jX/qacDuNqeljSJWc5bp6T0kci0hepfmz/FXVlw0HUz4H4dUoccXYK0vMHngwLPCZ /S/fKe6nUaeptDhKVINxGamyjAK8hRJZll6E0GRG64KqZgc1dfZUeqnGHnmbPXKWWmmg OZNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=ImnI9Ri08mfEo56c4akNwPmSzRmGSSDN3cj4sF9Q8UI=; b=eqgJE5KsJtCTHdc3lRR/fpwXrIVhKz1PTYbvGybO40gDcBMsXIZz571JjHy84Yw2TP cjWf0T8JMBkFcktcCesaRcVBCgA0SQJVvLDYn+rMoyjx2LIMEYAHp9r0Zor4YIBW6mys mz2jWQ9oFF2pv098xnJYfjp4Kvl3OPiklQ7rYBXJ6uAdw9Vm9IKwCAVgFQest5LNtrvS 8IbbhngD7KN3VSGmAekMjG4NjsIeyBGyeV04IIL/VNDF6b/8Urjwz9f/xcQgQ0CJOkwr fE4tqhvmDzlm/alcmsGCI1MACuPNtb2oQV97vccp5Nhnjknk63FExIjgRD15qR2UbUIA ESXA== X-Gm-Message-State: AOAM531PPR41D+lHarVGjJ2fZ7/Pu2+9b9C0D7IwwTB3FlVIX7ammgf/ 4ZkFqX6lNTAGQlkGYtRxuqh14/wDtZk= X-Google-Smtp-Source: ABdhPJzZRMDMtXYl/4NNg8RNL/CM49mdQBxkox6RCVXdaYLqdTgexWnpDVLStZu+h6uAoqypcz5y2g== X-Received: by 2002:ac8:514f:: with SMTP id h15mr23182160qtn.14.1632167011635; Mon, 20 Sep 2021 12:43:31 -0700 (PDT) Received: from [192.168.1.15] (c-24-61-240-80.hsd1.ma.comcast.net. [24.61.240.80]) by smtp.googlemail.com with ESMTPSA id l13sm11885636qkp.97.2021.09.20.12.43.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Sep 2021 12:43:31 -0700 (PDT) From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Message-ID: Date: Mon, 20 Sep 2021 15:43:30 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=cpitclaudel@gmail.com; helo=mail-qt1-x829.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi all, There are 40+ instances of the following code pattern in Emacs' code base, and many more in packages: (if (listp x) x (list x)) It's easy to find single-line instances of it using the regexp [(]if [(]listp .*[(]list . This pattern is called "ensure-list" in CL: (defun ensure-list (thing) "Returns THING as a list. If THING is already a list (as per listp) it is returned, otherwise a one element list containing THING is returned." (if (listp thing) thing (list thing))) I would like to add a similar function in Emacs, since it comes up so often. Is that an acceptable change? If so: - Which cl-*.el file should it go into, and where in that file? - Should it be a defun or a define-inline? - And once it is introduced, should the 40-some instances that could use it be updated, or left as-is? - Finally, where should it be documented? Cheers, Clément. From unknown Tue Aug 19 02:59:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50704: Feature request: Add ensure-list in cl-lib Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2021 21:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Cc: 50704@debbugs.gnu.org Received: via spool by 50704-submit@debbugs.gnu.org id=B50704.163217197225414 (code B ref 50704); Mon, 20 Sep 2021 21:07:01 +0000 Received: (at 50704) by debbugs.gnu.org; 20 Sep 2021 21:06:12 +0000 Received: from localhost ([127.0.0.1]:44146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSQUL-0006bj-14 for submit@debbugs.gnu.org; Mon, 20 Sep 2021 17:06:12 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSQUG-0006b7-8Q for 50704@debbugs.gnu.org; Mon, 20 Sep 2021 17:06:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=uDnJHdtsiJQERr6xxIhjDevUfUkxfYP1z4Ipf4ktTyc=; b=Gs4TwiGl+V91wc2XmZdRq43wV4 P6j0y9wJ8vGvRBmWu3RdqrfB5Tq/43Hx3cc+GCBK/3iI+X8R6mE79qztjyUJVaSjeVXZZOXfKzHtz Z07PA6VoHDsDXPQuRfz+WCINCuC0RNwmCce90tJMfd1apRqr4CHUxSL4a5RkFXx9k5tk=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSQU7-0004rT-0c; Mon, 20 Sep 2021 23:05:57 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: David Allred's _Old Home_: "You Never Knew" Date: Mon, 20 Sep 2021 23:05:54 +0200 In-Reply-To: ("=?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel"'s message of "Mon, 20 Sep 2021 15:43:30 -0400") Message-ID: <87v92vgdot.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel writes: > I would like to add a similar function in Emacs, since it comes up so often. Is that an acceptable change? > > If so: > - Which cl-*.el file should it go into, and where in that file? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Cl=C3=A9ment Pit-Claudel writes: > I would like to add a similar function in Emacs, since it comes up so oft= en. Is that an acceptable change?=20=20 > > If so: > - Which cl-*.el file should it go into, and where in that file?=20=20 I don't think it has to be in cl at all -- we can just call it `ensure-list'. > - Should it be a defun or a define-inline?=20=20 > - And once it is introduced, should the 40-some instances that could use = it be updated, or left as-is?=20=20 > - Finally, where should it be documented? defun, depends, and in the list section. :-) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 19 02:59:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50704: Feature request: Add ensure-list in cl-lib Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 50704@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Received: via spool by 50704-submit@debbugs.gnu.org id=B50704.163223819012531 (code B ref 50704); Tue, 21 Sep 2021 15:30:02 +0000 Received: (at 50704) by debbugs.gnu.org; 21 Sep 2021 15:29:50 +0000 Received: from localhost ([127.0.0.1]:47515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mShiQ-0003G1-34 for submit@debbugs.gnu.org; Tue, 21 Sep 2021 11:29:50 -0400 Received: from mail-pj1-f48.google.com ([209.85.216.48]:45688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mShiJ-0003FN-6A for 50704@debbugs.gnu.org; Tue, 21 Sep 2021 11:29:43 -0400 Received: by mail-pj1-f48.google.com with SMTP id mv7-20020a17090b198700b0019c843e7233so2839520pjb.4 for <50704@debbugs.gnu.org>; Tue, 21 Sep 2021 08:29:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=6KOCbqhdvawyaCV8ytfdvISd0WEZPPWV8+1aM7FDvxQ=; b=pdncR23gp08BIPqn/ODuu019buvOfzP3Sct3CjykzL3/FaGntmqjAFLnZyCcxJElDe xxqjhgfU7eOsiPyldXe2VUawwUHlfd8X5FNv5hEzHTDlgAh+ilzDLQNY6Ir27ZMRZjcz kWrC+43o/X03OCzO7Gq6bsyOWVGx7bFP9ML7W3yzkjsuHOXtsEGPXb53wGHnGQHBNsmu J6AE0dMFIqVQsx+zSp91/jK7dclWgzggdhGXQngI0EiIYDRnh0I3kZdg/Xfmkps7BueU erNgx1QFX6U3V/LrDUfZJmIwXhYpxn+cGL0s+2UnXvrozt1QwWI+py/ZSvoYlPP6fLUB DjDA== X-Gm-Message-State: AOAM533qwwStVcPiL0Es5MyyUyD3OZimI6zbABRv/EjpOcJwvxZTbsL/ k0FHDulP7hzgEHR5ffSiiT0p3d90dedL3VfDuwc= X-Google-Smtp-Source: ABdhPJyLijF0uITrygGqcVohJFOfcu9r/cA/JZmA+yAyTqbRfWM1GEJcj1RXqPpFtr8dvfi2Wd/wGu1EV/Pu8XutGOg= X-Received: by 2002:a17:90a:460a:: with SMTP id w10mr5894259pjg.132.1632238177556; Tue, 21 Sep 2021 08:29:37 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 21 Sep 2021 08:29:37 -0700 From: Stefan Kangas In-Reply-To: <87v92vgdot.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 20 Sep 2021 23:05:54 +0200") References: <87v92vgdot.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 21 Sep 2021 08:29:37 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Lars Ingebrigtsen writes: > I don't think it has to be in cl at all -- we can just call it > `ensure-list'. +1 >> - And once it is introduced, should the 40-some instances that could use it be updated, or left as-is? To expand on what Lars said, they can (IMO should) be updated unless they need to be compatible with old versions of Emacs. (I would add a comment to the other instances along the lines of "change to `ensure-list' once Emacs 27.1 compatibility is dropped".) From unknown Tue Aug 19 02:59:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50704: Feature request: Add ensure-list in cl-lib Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 18:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: 50704@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Received: via spool by 50704-submit@debbugs.gnu.org id=B50704.163224911827181 (code B ref 50704); Tue, 21 Sep 2021 18:32:01 +0000 Received: (at 50704) by debbugs.gnu.org; 21 Sep 2021 18:31:58 +0000 Received: from localhost ([127.0.0.1]:47945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkYg-00074K-3p for submit@debbugs.gnu.org; Tue, 21 Sep 2021 14:31:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkYf-000742-2G for 50704@debbugs.gnu.org; Tue, 21 Sep 2021 14:31:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=AqwQXtlcjRQ3vQXoEd+C9jP18fhvfPbbNz3ZXoqQqcM=; b=EpxqnWdqWaT7egm0wZEtZNIu+m 6qsSBfHfNCJDmoZ2GqvfkxZI9Hh4GXql7QgcP6dA9YqUoB9ObjBk69m52xexd7uXEBWp7LSSILXzv vUp0mPcqNDPAPTGi0gdeZaAQOwUc+fxdHqNooi2NOikHsEGY36XzJ6k4S2tnKvop+Zd4=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSkYV-0000c6-CM; Tue, 21 Sep 2021 20:31:50 +0200 From: Lars Ingebrigtsen References: <87v92vgdot.fsf@gnus.org> X-Now-Playing: The Homosexuals's _The Recommended Sampler 1982 (1)_: "Walk Before Imitate" Date: Tue, 21 Sep 2021 20:31:45 +0200 In-Reply-To: (Stefan Kangas's message of "Tue, 21 Sep 2021 08:29:37 -0700") Message-ID: <87v92tye3y.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas writes: >> I don't think it has to be in cl at all -- we can just call it >> `ensure-list'. > > +1 I've now added this to Emacs 28. (And now I'm waiting for complaints that we should name it `list-ensure' instead.) Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Kangas writes: >> I don't think it has to be in cl at all -- we can just call it >> `ensure-list'. > > +1 I've now added this to Emacs 28. (And now I'm waiting for complaints that we should name it `list-ensure' instead.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 21 14:32:03 2021 Received: (at control) by debbugs.gnu.org; 21 Sep 2021 18:32:03 +0000 Received: from localhost ([127.0.0.1]:47949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkYl-00074z-9r for submit@debbugs.gnu.org; Tue, 21 Sep 2021 14:32:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkYj-00074D-P3 for control@debbugs.gnu.org; Tue, 21 Sep 2021 14:32:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Es8wKZeIPek4WGsuMVw6rV0LJes61PL4/Lmy8uxhCGY=; b=ZL4mhFXB0NJqu218ZlsRpwDlsi +jAszEVNbGiCCMeq1Z3vKpdaqX85yC2VfSFPUUjRQVxF+Ii7dcJfruhvFyaElR8dGNQCgzI3A1Kce Lnd9hgZN7FVKILJtKkk9mGz1s/ehwirV6G1q8K+YZITo1onivRV6BAImTT5NRBKtX+Fw=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mSkYb-0000cI-Ps for control@debbugs.gnu.org; Tue, 21 Sep 2021 20:31:55 +0200 Date: Tue, 21 Sep 2021 20:31:53 +0200 Message-Id: <87tuidye3q.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #50704 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 50704 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 50704 28.1 quit From unknown Tue Aug 19 02:59:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#50704: Feature request: Add ensure-list in cl-lib Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 18:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50704 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen , Stefan Kangas Cc: 50704@debbugs.gnu.org Received: via spool by 50704-submit@debbugs.gnu.org id=B50704.163224981728490 (code B ref 50704); Tue, 21 Sep 2021 18:44:02 +0000 Received: (at 50704) by debbugs.gnu.org; 21 Sep 2021 18:43:37 +0000 Received: from localhost ([127.0.0.1]:47981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkjw-0007PS-Rp for submit@debbugs.gnu.org; Tue, 21 Sep 2021 14:43:37 -0400 Received: from mail-qk1-f178.google.com ([209.85.222.178]:37682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkju-0007PD-Ap for 50704@debbugs.gnu.org; Tue, 21 Sep 2021 14:43:35 -0400 Received: by mail-qk1-f178.google.com with SMTP id 73so669020qki.4 for <50704@debbugs.gnu.org>; Tue, 21 Sep 2021 11:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yAQkCJLan6WHJ5bqPut6H1SmKlYjlJing7ZzIXJWS9c=; b=MwWsxgwQMe1GKaib+KW0ATdzXuRtp6Kmv/8Ex/DS1yOQ9OPmoENyDAVdBrKkbJMcCC F+JFJM/REidP53hnHYV5eGaMTqnGmf2arIdetlTN2U8FqMxLNzEX8fRaxKJlSkKNws47 wSPMONCIp6l073EE7602VZLWXHIyDleF5sfbVsZb1bx/C4TBBvw1CSZvaDjs1CI6V5W1 6XYYvJQZr44CVJiWT8J/5EtkLzDjRYiewgBiWyQVhj+tvojitMIazIjvbK8d01e9PXsF tnXngxrTY7kvKO2Un+r8aCmzLsTbmXN5EZWzMZf8xppVY7nTVR4xG4C7AG92VUAeJRJl LlKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yAQkCJLan6WHJ5bqPut6H1SmKlYjlJing7ZzIXJWS9c=; b=NSYEpA0o1R0N545+rf6xFCyryq19YxlSsoHha6sSIx6M/Ve/VzTugsAi4opJLIoAsz RUKOB2L1MWDa8oH1fo5IAclQ6vFA6ELHooY6Mia94YBeu+wN3DE3UNulD6On9GEDmp7n 2ZIceJubCH8H424hOdw6wW6angxgzh+c20tzBg6+wsGpwG98WQQab5oVmvbTFV+Qv2ZS sxsj+l9/TCmN//AE2Z54JtjAs42L5hpDAgQk2oQ/BuWVNa8wUCQaZ1Op8ZgVjqx39+NC Phoego3iG7r5eSadD7LBkpAk3INm8Oy7a894+iokObtuBapQWGmtGGvLs0AoD5zA85CU SuMw== X-Gm-Message-State: AOAM530wQ2gMqFHNcEPJM8b3sidGalfaRcbRJu/krB94AMWZqve5NZG4 9oewvj8eVzrOAlFg7Et/0ZlmKnr4SnE= X-Google-Smtp-Source: ABdhPJwcm3/OyVV42sIUhm+qjEyOYg2Xt/ngvYikvUSfuXAAiAI3zy5Ek36Fs19aowXUU0DIjg35nA== X-Received: by 2002:a05:620a:444d:: with SMTP id w13mr31137236qkp.315.1632249808445; Tue, 21 Sep 2021 11:43:28 -0700 (PDT) Received: from [192.168.1.15] (c-24-61-240-80.hsd1.ma.comcast.net. [24.61.240.80]) by smtp.googlemail.com with ESMTPSA id s10sm14235746qko.134.2021.09.21.11.43.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Sep 2021 11:43:28 -0700 (PDT) References: <87v92vgdot.fsf@gnus.org> <87v92tye3y.fsf@gnus.org> From: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Message-ID: <8ff3217b-1905-b228-ce1d-c9670c66a5fa@gmail.com> Date: Tue, 21 Sep 2021 14:43:27 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <87v92tye3y.fsf@gnus.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) On 9/21/21 2:31 PM, Lars Ingebrigtsen wrote: > Stefan Kangas writes: > >>> I don't think it has to be in cl at all -- we can just call it >>> `ensure-list'. >> >> +1 > > I've now added this to Emacs 28. (And now I'm waiting for complaints > that we should name it `list-ensure' instead.) Nice, thanks a lot!