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 15:56:24 -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="24888"; 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 19:57:05 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 1nT6vI-0006Is-Lh for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Mar 2022 19:57:04 +0100 Original-Received: from localhost ([::1]:54050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nT6vH-0007pA-6J for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Mar 2022 13:57:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nT6ut-0007p2-Oo for help-gnu-emacs@gnu.org; Sat, 12 Mar 2022 13:56:39 -0500 Original-Received: from [2a00:1450:4864:20::132] (port=43677 helo=mail-lf1-x132.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nT6us-0002YL-4L for help-gnu-emacs@gnu.org; Sat, 12 Mar 2022 13:56:39 -0500 Original-Received: by mail-lf1-x132.google.com with SMTP id s25so20480269lfs.10 for ; Sat, 12 Mar 2022 10:56:37 -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=qbZ1t3BNg9qgEZxVukWow0WruBVKhyF4X/87Z7FWfmo=; b=A+3QowKVe2A+WUttha2u6nZj+9b+q9M89OVhd3RY+ApORbFN4Ve+DnOPE79scpS0fo If1rQoKSxShUCJgFNsriFacx8z5CsgJVjp2IIJ3NTn6/paw8Lvh9OSaG8MmwVc/F0hy1 IJjQu2eXPgVQ779nt2VimUfDw0USij9t+CyOWLy10X0EP/N+VrGAAHXVLezAihLZKSQN KslREatACI6Y4MfJRkGPteqK9RL9y3bp6HnCrXRCgLhUuy+ThkYN0k0+O+8cLe0VeJcB /peD0QxWAPx2LTWpfGuOqWa3n/9+LhHxZLECm8bMae4NDI2EVR1LH6lEGWiQID9KBtaV lbJg== 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=qbZ1t3BNg9qgEZxVukWow0WruBVKhyF4X/87Z7FWfmo=; b=WPihdQXwOGg5HmTQiS8sl7x905qxtCcvWSydbgI2cfPxzucSMDO3usoLorFcPOcJCu Q8cO+Cbtqt6F++GejjwZjD9Atf5pNJoIcXWZZpRwHozDTGZyUJ0W3R05tz7CXa0uFeCx gXuyXTfeej7Dco1Y6HKUVkTuM2P1RDIgPXhHwyYVIi6XP4U1t/PQYjWo6r9kGewZZ/9X 181rlGTG+F/2R+9ZOFmWderNoCyXkql4lYCAgyOA11nb4WVlLPfePO2KD+3UWrSTwkIt cWSDzrLEozopevGFOUvsXmT8jWftfCth6H9/rnyDngyJKpP6E1IAMLvOSjQqL5oxxRaP aG/w== X-Gm-Message-State: AOAM530JZ0Z4r0baXsm3P01GV0T2rbX7S/pco1Y59AR16nJ6EYVA/Xia YfOT+pgxGImvbwkpxCGW7XZIFCNlE4uoDrTKi/IeMI5X0j4= X-Google-Smtp-Source: ABdhPJwkWgnOqDj59seyz9kIuhg8sDEOgtAkTCNlKCuGU5mT8I/I9CpyW/Lo95iJYkUJb9f/Gw7194AOM8DXmAlJbjw= X-Received: by 2002:a05:6512:1046:b0:448:729b:ce66 with SMTP id c6-20020a056512104600b00448729bce66mr5248002lfb.356.1647111396256; Sat, 12 Mar 2022 10:56:36 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::132 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=eduardoochs@gmail.com; helo=mail-lf1-x132.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:136496 Archived-At: On Sat, 12 Mar 2022 at 10:33, Stefan Monnier wrote: > > Eduardo Ochs [2022-03-12 03:08:04] wrote: > > On Sat, 12 Mar 2022 at 01:56, Stefan Monnier via Users list for the > > GNU Emacs text editor wrote: > >> That's right. > >> Nowadays, *all* files with a `.el` extension should have > >> `-*- lexical-binding:t -*-` somewhere on their first line. > > > > Or a `-*- lexical-binding:nil -*-`... > > The only justification I've seen for that so far is for tests that check > whether something still works with the old dialect of ELisp (i.e. for > files which can simply be deleted the day this old dialect is not > supported any more). Well, SOME people like dynamic binding very much and they have code that would be VERY hard to rewrite in lexical binding... https://lists.gnu.org/archive/html/help-gnu-emacs/2021-08/msg00345.html https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30078#86 https://www.gnu.org/software/emacs/emacs-paper.html#SEC18 Cheers, E.