GNU bug report logs - #37400
Patch for bug in cl-reduce: function called with no arguments when list is empty

Previous Next

Package: emacs;

Reported by: AdriĆ  Garriga <adria.garriga <at> gmail.com>

Date: Fri, 13 Sep 2019 14:38:02 UTC

Severity: minor

Tags: fixed

Fixed in version 27.1

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

Bug is archived. No further changes may be made.

Full log


Message #11 received at 37400 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 37400 <at> debbugs.gnu.org,
 AdriĆ  Garriga <adria.garriga <at> gmail.com>
Subject: Re: bug#37400: Patch for bug in cl-reduce: function called with no
 arguments when list is empty
Date: Mon, 07 Oct 2019 06:33:01 +0200
Noam Postavsky <npostavs <at> gmail.com> writes:

> Actually, I think it's a docstring bug.  The Common Lisp Hyperspec says:
>
>     If the subsequence is empty and no initial-value is given, then the
>     function is called with zero arguments, and reduce returns whatever
>     function does. This is the only case where the function is called
>     with other than two arguments.

I've now added a variation of this to the doc string, and I'm closing
this bug report.

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




This bug report was last modified 5 years and 223 days ago.

Previous Next


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