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 12:54:39 -0500 Message-ID: References: <837dqatsjd.fsf@gnu.org> <83360ytqk3.fsf@gnu.org> <83wny9scmb.fsf@gnu.org> <83eekhs5sj.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="26242"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: stefan@marxist.se, 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 18:55:14 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 1khz0c-0006is-0F for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 18:55:14 +0100 Original-Received: from localhost ([::1]:37444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khz0a-0000oX-Tk for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Nov 2020 12:55:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khz0Q-0000oM-FF for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 12:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khz0Q-0005KD-8R for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 12:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khz0Q-0004hu-87 for bug-gnu-emacs@gnu.org; Wed, 25 Nov 2020 12:55: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 17:55: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.160632688818065 (code B ref 44854); Wed, 25 Nov 2020 17:55:02 +0000 Original-Received: (at 44854) by debbugs.gnu.org; 25 Nov 2020 17:54:48 +0000 Original-Received: from localhost ([127.0.0.1]:36890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khz0C-0004hJ-J3 for submit@debbugs.gnu.org; Wed, 25 Nov 2020 12:54:48 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:36953) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khz0B-0004h7-AC for 44854@debbugs.gnu.org; Wed, 25 Nov 2020 12:54:47 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E95E6100222; Wed, 25 Nov 2020 12:54:41 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5FDF51001CB; Wed, 25 Nov 2020 12:54:40 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1606326880; bh=YL6e/6iXA0arWC1yXVXGO1eYZVKYyC2BPqq4cOXm/bk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=EcIGwrLENLvhQifQmlkFbArgByp/Xd8avuIz1QkKUQ1Z8idIP32WfGRAns0JY02PN y53pfVl9X5KY2lIil1pmzcVK7SegYxkyro3kkWP82E3aSfScrVtNFpe7aRIY1IPvuu vfnYwk5GEst1hnsIsWGtBNTzZ5EuqysrOp3Q2Xgm+SmksjUhb9dhv4mPM4U2G3HVCu 0a92Y1+H86721npOvxI98GdzOAsxS/jZ1WIAKIb/mv4D8wk8VtLMDOqAziNagCLTLp 7S5GnCHVz6o5tT/aMNG1CnqzTY3zyId+ucHudZDQMftSMCG5t/DTV+FSKyuAdSv/HM KLzGMA+YbLc3A== Original-Received: from alfajor (69-165-136-52.dsl.teksavvy.com [69.165.136.52]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2861A120314; Wed, 25 Nov 2020 12:54:40 -0500 (EST) In-Reply-To: <83eekhs5sj.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 25 Nov 2020 19:30:20 +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:194214 Archived-At: > Then perhaps it isn't yet time to start putting the cookies into files > that don't need it, like the autoloads files? I think it would be good to aim for Emacs-28 being distributed with all *its* .el files as well as the Elisp files it generates using `lexical-binding:t`. That's why I'm in favor of adding this cookie to the autoload files now. >> The first step will be to add a warning when a file doesn't come with an >> explicit `lexical-binding:` cookie. > That's an annoyance I think we should avoid. It shouldn't be needed. > It's like having a warning for a problem that will take a long time to > get rid of. Bad idea, IMO. So we should first make sure we use `lexical-binding:t` everywhere. Fine by me, Stefan