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.bugs Subject: bug#44854: [PATCH] Add lexical-binding cookie to autoload files Date: Wed, 25 Nov 2020 11:40:03 -0500 Message-ID: References: <837dqatsjd.fsf@gnu.org> <83360ytqk3.fsf@gnu.org> <83wny9scmb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7296"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Kangas , 44854@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 25 17:41:12 2020 Return-path: Envelope-to: geb-bug-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 1khxqx-0001kR-Bs for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 17:41:11 +0100 Original-Received: from localhost ([::1]:37826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khxqw-0003sU-EF for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 11:41:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35776) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khxqo-0003s6-Fr for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 11:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khxqo-00059m-8z for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 11:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khxqo-0002rL-7Q for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 11:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Nov 2020 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44854 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 44854-submit@debbugs.gnu.org id=B44854.160632241410905 (code B ref 44854); Wed, 25 Nov 2020 16:41:02 +0000 Original-Received: (at 44854) by debbugs.gnu.org; 25 Nov 2020 16:40:14 +0000 Original-Received: from localhost ([127.0.0.1]:36785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khxq2-0002pp-71 for submit@debbugs.gnu.org; Wed, 25 Nov 2020 11:40:14 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khxq0-0002pT-N3 for 44854@debbugs.gnu.org; Wed, 25 Nov 2020 11:40:12 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1867280B69; Wed, 25 Nov 2020 11:40:07 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3F0A28009B; Wed, 25 Nov 2020 11:40:05 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1606322405; bh=4vPognTy4SRuk2red0hu2GSry0YTB3ihT+2f+jVx2Io=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=dhg8qRNy1S67askfMEIPlDfQ5WNGiuoNU70q2K+mF57jv5KWpj1v600XcJjG+Jrv1 9V8dnU8LQ1etOp79a+bQQy8X9r/7A7IgWJ04xYGnim35RKNyYphCzgJ0vFMgUgRS4S aUW7U7hjprWFg1J2npKrtlwhW79mxN6KomOHTl100GG+mVV0X5pb4SOTRtsW4yBQQL 2rOAxb7P+BSThl3DPZAwk4diacmwjM7DdLIdNM9ZWRn54RowR2j76cLw5gsI0CvQsA ZYwPyg2TicaVKcB4KsHro+wEJn37PID0V2GRPHFDo8xYLZVOsSQChkKdz/F7s2hhUC IZoT1AnJ86Pbg== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 04F67120164; Wed, 25 Nov 2020 11:40:04 -0500 (EST) In-Reply-To: <83wny9scmb.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Nov 2020 17:02:52 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:194207 Archived-At: > emacs-devel and agree that this is our practical intention in the near > future. I don't think anyone said "near future". > Personally, it is not clear to me that we want to switch to > lexical-binding by default in Emacs 28. I'm pretty sure noone suggested Emacs-28 for such a switch. Lars suggests Emacs-30, and to be honest this discussion is the first time I see an Emacs version attached to such an idea. I myself hadn't even started to think about when that could happen (tho I clearly have thought about how to get there). The first step will be to add a warning when a file doesn't come with an explicit `lexical-binding:` cookie. I hadn't thought about when this could be done, but yes, I guess this could be done in Emacs-28 already, indeed. If so, we should start by adding `lexical-binding:nil` cookies to all the files we haven't converted yet. Stefan