From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46722: test-map-into fails Date: Wed, 05 Jan 2022 11:38:03 -0500 Message-ID: References: <871r2yu8b1.fsf@gnus.org> <87czl7w4fh.fsf@dick> <875yqyw4me.fsf@dick> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11607"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 46722@debbugs.gnu.org To: dick Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 05 17:39:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n59Jj-0002lQ-2q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 17:39:15 +0100 Original-Received: from localhost ([::1]:60686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n59Jh-0006Fm-5S for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Jan 2022 11:39:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n59JW-0006FP-RH for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2022 11:39:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58299) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n59JW-0000Tn-IB for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2022 11:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n59JW-0002tt-DZ for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2022 11:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Jan 2022 16:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46722 X-GNU-PR-Package: emacs Original-Received: via spool by 46722-submit@debbugs.gnu.org id=B46722.164140069511067 (code B ref 46722); Wed, 05 Jan 2022 16:39:02 +0000 Original-Received: (at 46722) by debbugs.gnu.org; 5 Jan 2022 16:38:15 +0000 Original-Received: from localhost ([127.0.0.1]:41609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n59Il-0002sR-0O for submit@debbugs.gnu.org; Wed, 05 Jan 2022 11:38:15 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:31544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n59Ij-0002sA-3x for 46722@debbugs.gnu.org; Wed, 05 Jan 2022 11:38:13 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 980DB100979; Wed, 5 Jan 2022 11:38:07 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4C64610018E; Wed, 5 Jan 2022 11:38:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1641400686; bh=xcxv5GRRKsmd/hACbfFkrOUePbvlJCVDbiGR648Ey7A=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=PrsAfO1LPJf+V43xOY9cmMJ8kNKcPnGrGEHxc0kTQG0VGuV4mEeTvmfbI9hJiA//g Ite8QPSzwhfTMWMA/yiVk8z15+2/9TbZnrujz8lHOJD/AUbjFmOsH4vo0LwIeSvAbE A+G9+HpaPNz807YwNUnovjW4XhBzXOFpMvikgShrO7v4jwoIt9QAOX+NTEZlBxibCZ 3NXZo1wAnJ3+xj1c06x9+gGDMthHUSW8B3eJsT3jcKf/Ms+T+kLxn0mGho2Q4xDX49 OYGoECzZ02v9f7zvwIH5G80TgXfpG6PXg8Ab1+cjJozd/j65lticzPV4Hvawj790Vq NKqCyFah1h5Gg== Original-Received: from pastel (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0AF981202C1; Wed, 5 Jan 2022 11:38:06 -0500 (EST) In-Reply-To: <875yqyw4me.fsf@dick> (dick's message of "Wed, 05 Jan 2022 11:04:41 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:223701 Archived-At: >> 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