From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: lexical-binding is turned on in more use cases Date: Thu, 12 Mar 2020 20:46:16 -0400 Message-ID: References: <83k13ubv3g.fsf@gnu.org> <83imjebsrh.fsf@gnu.org> <20200308193048.GB4832@ACM> <20200310191328.GB5046@ACM> <87lfo7q5e3.fsf@web.de> <20200310215334.GG5046@ACM> <87eetz4w1k.fsf@web.de> <87wo7rodi6.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="96991"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Mackenzie , Eli Zaretskii , Stefan Monnier , Emacs developers To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 13 01:47:27 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jCYU3-000P4P-67 for ged-emacs-devel@m.gmane-mx.org; Fri, 13 Mar 2020 01:47:27 +0100 Original-Received: from localhost ([::1]:52208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCYU2-0003FQ-37 for ged-emacs-devel@m.gmane-mx.org; Thu, 12 Mar 2020 20:47:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53275) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCYTG-0002Pg-59 for emacs-devel@gnu.org; Thu, 12 Mar 2020 20:46:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCYTF-0000KB-0e for emacs-devel@gnu.org; Thu, 12 Mar 2020 20:46:37 -0400 Original-Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]:45096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCYTC-0000Dz-DX; Thu, 12 Mar 2020 20:46:35 -0400 Original-Received: by mail-oi1-x22f.google.com with SMTP id v19so7586561oic.12; Thu, 12 Mar 2020 17:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EEWcFzyvBPeicIXjBjWY6eRiJD0ZtWndmyXQU3YQICQ=; b=b/7mEgbyqXykct0qenefotpnSVy2hrIbgADT3pCPGxSqJdQ/kDdNG1oHK47I7e/+ag V7uNd4G93P268MauyUysDrjwHqCDu2OR6YJH7C8/3j6dauMvZHQe9YXvINjUn3AQzDFN cbDUGHRkr9gYzbqWRQ0xUXJhO/eB0Dz/w9sKRFn8iAsgvyEh2fDVBfP7TDvVCj+L9eRH 5GSuIg99pGOm4l7ro4mmDGNoPgeB45Lk81znCU8QgMtv0Ng0QJ1A+CRNni+uHbWwCmmt c8RWVf92PrH1T5cOO/XBRHJKvL4wfQm/f8PwNVUODI04NWzlW6odZWRPEGjd015bT5BA LgMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EEWcFzyvBPeicIXjBjWY6eRiJD0ZtWndmyXQU3YQICQ=; b=Uv6nUgB9M5lJNR4hL7Whe82pQwa8+e0raPffsEAn5DdVlnVe8cvNsTLtugNi5HsyIE vUD7DUs1GjUBfIyRFLn7IDkggaMsLOf2sqi+dXvEaMxPRyyZubtZqdxeg8e5UNslfh8q dr4myzTLqYhTKC2YnEVDGB5jpbmLGfI88f0MOuwEMMzaH/RMz6PqyDDO2MpLDi1tplAt tBN2/tKFPKz7eMNci9L/VF+Xv5MC3ro+RlAFnqrKYSRzqa5AbIvFqpfuNpFwHQQYx2Hq mNXt1wdvL4vWO/otnylrU0VuHuWfabb4RYJj+ZLARj3ui/yZ1YMA0OeZrwBXw3CGl8dD bj0g== X-Gm-Message-State: ANhLgQ3qm+fdUo0KrpHVG75TVnwrCePcstREp5xLCVs8pOZJEqtiWFLe PSNVUAGMO9gX7dxOKS1JEqgNOUcW5sEKpuwEHvU= X-Google-Smtp-Source: ADFU+vv0ANSgJEjccO36b5OQpiEk4dDJrSKv4m7p8WjiTkk+GcrK0tYtvmYi69Cc6R2gZ4ojZFfY0ofTOLmgOFwcbSg= X-Received: by 2002:aca:db41:: with SMTP id s62mr4761945oig.87.1584060393378; Thu, 12 Mar 2020 17:46:33 -0700 (PDT) In-Reply-To: <87wo7rodi6.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245498 Archived-At: On Tue, 10 Mar 2020 at 22:02, Michael Heerdegen wrote: > > Essentially some cc-mode variables are only declared dynamic locally > > within individual files. Without lexical binding the only difference > > this causes is that they are unbound at top level; but with > > lexical-binding, outside of the declaring files (e.g., in M-: > > expressions), let-binding those variables doesn't bind the value > > dynamically. > > I meant "real" examples (that are not actually coding errors). Whether or not there is a coding error in the above is a somewhat philosophical question. > like let-binding a variable that is not (yet) declared around an > expression whose evaluation will autoload the declaration but it's too > late for that binding and you get something unexpected. But I just realized Bug#39823 is an example of exactly this. https://debbugs.gnu.org/39823 "update-directory-autoloads regression from Emacs 26 to Emacs 27"