GNU bug report logs - #46722
test-map-into fails

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Tue, 23 Feb 2021 16:23:01 UTC

Severity: normal

Merged with 53365

Found in versions 27.2, 28.0.50, 29.0.50

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: dick <dick.r.chiang <at> gmail.com>
Cc: 46722 <at> debbugs.gnu.org
Subject: Re: bug#46722: test-map-into fails
Date: Wed, 05 Jan 2022 11:38:03 -0500
>> Does the patch below help?

No, it doesn't because I see now that we already fixed this bug by
binding `lexical-binding` (just a bit further above).

> I don't see why it would if this doesn't work:
>
> (let ((lexical-binding t))
>   (funcall
>    (funcall
>     (backquote
>      (lambda (arg)
>        (lambda () arg)))
>     t)))

The effect of `lexical-binding` is different from what you think.
It applies to the moment a sexp passes from being "data" to the moment
it is labeled as "code", not to the moment the code is executed
(otherwise we couldn't compile the code of functions ahead of time, not
knowing which value of `lexical-binding` would be active when the code
will be executed).

> While I remain leery of the fast and loose scoping here, it was but a red
> herring.

Indeed,


        Stefan





This bug report was last modified 3 years and 123 days ago.

Previous Next


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