unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Mark Karpov <markkarpov@openmailbox.org>
Cc: 21584@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	[thread overview]
Message-ID: <87ilw7749o.fsf@gnus.org> (raw)
In-Reply-To: <87mvw5npkw.fsf@openmailbox.org> (Mark Karpov's message of "Tue,  29 Sep 2015 22:43:43 +0600")

Mark Karpov <markkarpov@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





      parent reply	other threads:[~2021-12-02  9:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29 16:43 bug#21584: 25.0.50; Please add cl-constantly function from Common Lisp Mark Karpov
2015-10-01  2:26 ` Richard Stallman
2015-10-01 12:58   ` Nicolas Petton
2015-10-02  2:27     ` Richard Stallman
2015-10-02  4:52       ` Daniel Colascione
2015-10-03  1:36         ` Richard Stallman
2021-12-02  9:19 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ilw7749o.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=21584@debbugs.gnu.org \
    --cc=markkarpov@openmailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).