From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How do I pass a variable defined in a wrapping let, to a lambda? Date: Sat, 12 Mar 2022 14:12:03 -0500 Message-ID: References: <871qz85bwh.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18054"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs To: Eduardo Ochs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 12 20:13:07 2022 Return-path: Envelope-to: geh-help-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 1nT7Ap-0004Uy-8v for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Mar 2022 20:13:07 +0100 Original-Received: from localhost ([::1]:56764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT7An-0002Dc-RH for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Mar 2022 14:13:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT79y-0002A5-Hn for help-gnu-emacs@gnu.org; Sat, 12 Mar 2022 14:12:14 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:11063) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT79s-00054Y-RS for help-gnu-emacs@gnu.org; Sat, 12 Mar 2022 14:12:10 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A322244090B; Sat, 12 Mar 2022 14:12:06 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9B2AD440908; Sat, 12 Mar 2022 14:12:05 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1647112325; bh=Vm7h/N5ytKAEzzoie9x5D9uQ/P7+a+IaiL7dVUEWW5w=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=i1/CfjGgMGni1NrF9IwWecf6/5ub4sQiksQ4YCnjCRT5STLE+Rye1MEOm4TPt7Cqt RUlmDsdfwlGQYv8K47ATR63bJsuS7KE6ggYFSzBrNDgxW9B1uas+J+hwelQsJHboTw DlLN5KBAIK2t78JT7cONTln9sMx04O2DR+p/pDgUlNA13lJlRRbBKlBxrfF2dXKv7W 2WAcB1fz5dLIkLFDnOns/wBdSNrcVEMSGXldP+d2jEOcIjMfdDrsV21zQ90jDc72d0 sgZyK5Kqk4ViKAYNtAfC9oEFueqxZVsQckRbnmrkV2MWt8C1yDp46jrSbC6fRAi9te J34MEAnAGYI/w== Original-Received: from pastel (unknown [45.72.221.51]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 6DEFB1203D6; Sat, 12 Mar 2022 14:12:05 -0500 (EST) In-Reply-To: (Eduardo Ochs's message of "Sat, 12 Mar 2022 15:56:24 -0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136497 Archived-At: > Well, SOME people like dynamic binding very much and they have code > that would be VERY hard to rewrite in lexical binding... `-*- lexical-binding:t -*-` doesn't prevent the use of dynamic scoping. Stefan