GNU bug report logs - #46834
28.0.50; byte-compiling the standard counter closure fails

Previous Next

Package: emacs;

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

Date: Sun, 28 Feb 2021 18:08:02 UTC

Severity: normal

Found in version 28.0.50

Done: Pip Cet <pipcet <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pip Cet <pipcet <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#46834: closed (28.0.50; byte-compiling the standard counter
 closure fails)
Date: Tue, 02 Mar 2021 07:37:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 2 Mar 2021 07:36:06 +0000
with message-id <CAOqdjBf2d67sOrJvQ5+NX6cGV_HJP0-geJV0T443vbZoPKhLzQ <at> mail.gmail.com>
and subject line Re: bug#46834: 28.0.50; byte-compiling the standard counter closure fails
has caused the debbugs.gnu.org bug report #46834,
regarding 28.0.50; byte-compiling the standard counter closure fails
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
46834: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46834
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Pip Cet <pipcet <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; byte-compiling the standard counter closure fails
Date: Sun, 28 Feb 2021 15:04:06 +0000
(My apologies if this is well-known, documented, or plain stupid on my
part, but I think it's an interesting gotcha. Feel free to close
immediately in those cases.)

Steps to reproduce from emacs -Q:
Evaluate the following in a lexically-bound Emacs Lisp buffer:

(byte-compile (let ((l 0)) (lambda () (cl-incf l))))

Expected result:

A byte code object which will increment its return value by one every
time it is called.

Actual result:

A byte code object which always returns 1.


[Message part 3 (message/rfc822, inline)]
From: Pip Cet <pipcet <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 46834-done <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#46834: 28.0.50;
 byte-compiling the standard counter closure fails
Date: Tue, 2 Mar 2021 07:36:06 +0000
On Tue, Mar 2, 2021 at 7:34 AM Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> > It's been a while since I pushed, did I get that right?
>
> Yup; looks perfect.

Thanks for checking, and I'm closing the bug.

Pip


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

Previous Next


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