GNU bug report logs - #40968
28.0.50; (apply nil)

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> gmail.com>

Date: Wed, 29 Apr 2020 18:27:02 UTC

Severity: normal

Tags: fixed

Found in version 28.0.50

Fixed in version 28.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: Pip Cet <pipcet <at> gmail.com>
To: Mattias EngdegÄrd <mattiase <at> acm.org>
Cc: 40968 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, Stefan Kangas <stefan <at> marxist.se>, Noam Postavsky <npostavs <at> gmail.com>
Subject: bug#40968: 28.0.50; (apply nil)
Date: Tue, 2 Jun 2020 07:36:26 +0000
[Message part 1 (text/plain, inline)]
On Thu, May 7, 2020 at 1:53 PM Mattias EngdegÄrd <mattiase <at> acm.org> wrote:
> 7 maj 2020 kl. 13.54 skrev Noam Postavsky <npostavs <at> gmail.com>:
>
> > The obvious solution is just to leave the weird single arg form
> > unoptimized.  Otherwise, what about your earlier suggestion?
> >
> >    (apply X) == (apply (car X) (cdr X))
>
> Yes, we are under no obligation to optimise this case in any way.

I think there's consensus, then. I've updated the documentation, in
the patch, to state that providing two or more arguments is faster.

Patch attached.
[0001-Handle-single-argument-apply-consistently-bug-40968.patch (application/x-patch, attachment)]

This bug report was last modified 4 years and 239 days ago.

Previous Next


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