--- Begin Message ---
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.
--- End Message ---
--- Begin Message ---
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@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
--- End Message ---