From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: lexical-binding is turned on in more use cases Date: Sun, 8 Mar 2020 19:30:48 +0000 Message-ID: <20200308193048.GB4832@ACM> References: <83pndo9zeb.fsf@gnu.org> <83o8t6bx2p.fsf@gnu.org> <83k13ubv3g.fsf@gnu.org> <83imjebsrh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="65672"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 08 20:32:02 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 1jB1ec-000Gz8-08 for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Mar 2020 20:32:02 +0100 Original-Received: from localhost ([::1]:32770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jB1eb-0001of-12 for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Mar 2020 15:32:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36884) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jB1dX-0001Ff-GL for emacs-devel@gnu.org; Sun, 08 Mar 2020 15:30:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jB1dW-0004dz-Cm for emacs-devel@gnu.org; Sun, 08 Mar 2020 15:30:55 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:57333 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1jB1dW-0004UM-2J for emacs-devel@gnu.org; Sun, 08 Mar 2020 15:30:54 -0400 Original-Received: (qmail 83036 invoked by uid 3782); 8 Mar 2020 19:30:50 -0000 Original-Received: from acm.muc.de (p4FE15D2F.dip0.t-ipconnect.de [79.225.93.47]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 08 Mar 2020 20:30:48 +0100 Original-Received: (qmail 21380 invoked by uid 1000); 8 Mar 2020 19:30:48 -0000 Content-Disposition: inline In-Reply-To: <83imjebsrh.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.1 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:245358 Archived-At: Hello, Eli and Stefan. On Sun, Mar 08, 2020 at 20:34:10 +0200, Eli Zaretskii wrote: > > From: Stefan Monnier > > Date: Sun, 08 Mar 2020 14:20:05 -0400 > > Cc: emacs-devel@gnu.org > > We could say that to recover the original behavior, instead of > > --eval "" > > the command could use > > --eval "(eval ')" > And the same for M-:? As it happens, this issue bit me this afternoon. I instrumented a function for edebug and tried M-: (c-align-cpp-indent-to-body) . This complained about c-syntactic-context being unbound, so I tried: M-: (let ((c-syntactic-context (c-guess-basic-syntax))) (c-align-cpp-indent-to-body)) , and was puzzled that c-syntactic-context was _still_ unbound. So I checked the spelling, and was more puzzled. Eventually I used setq, which worked, but caused me further problems later on in my Emacs session. Furthermore, c-syntactic-context is explicitly declared a dynamic variable by a defvar form. So why did a dynamic binding not work? THIS IS A MAJOR BACKWARD STEP FOR EMACS!!!! Looking at the git log, it appears this change was made nearly a year ago. I don't remember the discussion about it on emacs-devel, but I would surely have argued against it if I knew it was being proposed. This is broken. Can we get it fixed, please (for some reasonable value of "fixed")? -- Alan Mackenzie (Nuremberg, Germany).