From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs 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 17:17:09 -0300 Message-ID: References: <871qz85bwh.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2568"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 12 21:18:41 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 1nT8CG-0000VM-OL for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Mar 2022 21:18:40 +0100 Original-Received: from localhost ([::1]:37182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT8CF-00056s-Ms for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Mar 2022 15:18:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT8B3-0004R3-0L for help-gnu-emacs@gnu.org; Sat, 12 Mar 2022 15:17:27 -0500 Original-Received: from [2a00:1450:4864:20::22b] (port=35355 helo=mail-lj1-x22b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nT8B1-0000c0-MY for help-gnu-emacs@gnu.org; Sat, 12 Mar 2022 15:17:24 -0500 Original-Received: by mail-lj1-x22b.google.com with SMTP id h11so16619396ljb.2 for ; Sat, 12 Mar 2022 12:17:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vPsePmPX9wUu8iUceYzp1QYTXt7h1zNsdZG94lWGg5s=; b=ee+rJwDEWKyGE95pXQpmBsAwq7h/EHB5nuowYJRYaVxMMBcDpPkArwjgIp0KOaP2Jg +jQKG7dX3xoUjba2iJsUpJdNn5s7pP+ufMzoEqA/xbtjXAXu80AVk7ihIOAvPaRCefV3 sUZxdoneOcz3Do4tNvAJXA4J0Mvi/LoFoI/mQIrraVMt9GNLF38HYZ8u9CXbr/cKdsme E7gMRPAeimYoGUflU0COOEimXRLLUw+PUXpKnHtOs1Iov/CN0zQE+sJAAEtqTIjqxNcP f5DRBP+vUkoG5LAa+6ErTaXkXqUjpJI8j+EauI7kGbGxLXoGO8LIMDagQyi5CzoRbi0C Nb5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vPsePmPX9wUu8iUceYzp1QYTXt7h1zNsdZG94lWGg5s=; b=3Llu98wcAswhbDgq1mjYuIoWm8PPu3ph5+58XErie4sdQc77ZXU5jE5pst5sgBFHj1 UNFDUANMBe5f+9z8yGAXFlbJsA1T8dkenc4/tx6Lzu8s9UWyUCa7bGludkA2vfkd+PkZ DS4w0HOohRfRX9vfHy0fj408qv1J701w5S/wgEsCA9mVGuh008UbQftg2ddEcjnd2tKx D9mSXuxzIm6R4g4L/6UvlrROB6GJIMi5N89B0uIEBO87WJIpIdWyJVKw5Ad0Vtvaf5oL r/4VkghAbzt4qgJTnUcu75/gFL539CIkkX5+r085Iy7K/9jIucZ5nmP2gscgAPLM0wfL rBcw== X-Gm-Message-State: AOAM5304vqvJN6g21n+WDvGnPtP5eRBhDRS14xnRIX+w+i4K+H/u50YP F/Dx3MBgpApfq4kmQoJhE/i0mBwgGhovVmOa+Z4UrprZ/LI= X-Google-Smtp-Source: ABdhPJzgXdDqS0oikhOmbL1pEs6TB8/gpXTmYG8WLzlmEpl4Knyx2MUb6yL+SitFf5hHwX2ebuH/lXBowrRgFT2GlXU= X-Received: by 2002:a05:651c:545:b0:249:2ae0:c667 with SMTP id q5-20020a05651c054500b002492ae0c667mr1488222ljp.57.1647116241266; Sat, 12 Mar 2022 12:17:21 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::22b (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=eduardoochs@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:136500 Archived-At: On Sat, 12 Mar 2022 at 16:12, Stefan Monnier wrote: > > > 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. How do I define a function that uses dynamic binding in a file that has `-*- lexical-binding:t -*-`? E.