GNU bug report logs - #21584
25.0.50; Please add cl-constantly function from Common Lisp

Previous Next

Package: emacs;

Reported by: Mark Karpov <markkarpov <at> openmailbox.org>

Date: Tue, 29 Sep 2015 17:29:02 UTC

Severity: wishlist

Found in version 25.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mark Karpov <markkarpov <at> openmailbox.org>
Cc: 21584 <at> debbugs.gnu.org
Subject: bug#21584: 25.0.50; Please add cl-constantly function from Common Lisp
Date: Thu, 02 Dec 2021 10:19:31 +0100
Mark Karpov <markkarpov <at> openmailbox.org> writes:

> In Common Lisp there is ‘constantly’ function:
>
>   http://www.lispworks.com/documentation/HyperSpec/Body/f_cons_1.htm
>
> which creates new function without side-effects that takes any number of
> arguments and always returns specified value.
>
> For some reason ‘cl-lib’ doesn't provide ‘cl-constantly’, so I guess it
> should exist in pure Emacs Lisp under different name.

I've now added `cl-constantly' to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 231 days ago.

Previous Next


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