From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44854: [PATCH] Add lexical-binding cookie to autoload files Date: Sat, 28 Nov 2020 09:59:06 +0200 Message-ID: <834kl9oqt1.fsf@gnu.org> References: <837dqatsjd.fsf@gnu.org> <83360ytqk3.fsf@gnu.org> <83wny9scmb.fsf@gnu.org> <83eekhs5sj.fsf@gnu.org> <83a6v5s3e3.fsf@gnu.org> <837dq9s12u.fsf@gnu.org> <83wny9qj0j.fsf@gnu.org> <83o8jkqkr3.fsf@gnu.org> <868samwhk0.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33326"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44854@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 28 09:00:11 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 1kiv9P-0008b7-Ay for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 09:00:11 +0100 Original-Received: from localhost ([::1]:42816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiv9O-0003uL-92 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 03:00:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiv9G-0003u5-PW for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 03:00:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiv9G-00063O-Gl for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 03:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kiv9G-0001DZ-ET for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 03:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Nov 2020 08:00: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.16065503684605 (code B ref 44854); Sat, 28 Nov 2020 08:00:02 +0000 Original-Received: (at 44854) by debbugs.gnu.org; 28 Nov 2020 07:59:28 +0000 Original-Received: from localhost ([127.0.0.1]:46906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiv8h-0001CD-Km for submit@debbugs.gnu.org; Sat, 28 Nov 2020 02:59:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiv8g-0001C1-E1 for 44854@debbugs.gnu.org; Sat, 28 Nov 2020 02:59:26 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41575) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiv8b-0005ov-3J; Sat, 28 Nov 2020 02:59:21 -0500 Original-Received: from [176.228.60.248] (port=2317 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kiv8Z-0006d4-MS; Sat, 28 Nov 2020 02:59:20 -0500 In-Reply-To: <868samwhk0.fsf@gmail.com> (message from Andy Moreton on Fri, 27 Nov 2020 22:39:27 +0000) 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:194478 Archived-At: > From: Andy Moreton > Date: Fri, 27 Nov 2020 22:39:27 +0000 > > If adding a lexical-binding tag has no effect on the autoload files > (other than making them a few bytes larger), then it should be of no > consequence. The additional code in autoload.el is such a consequence, if nothing else. > Adding the tag to the autoloads is not about needing code changes, but > simply a marker that those files are ready for the flip-the-switch > event. They are already ready for the flip. > However, by treating all .el files uniformly (including autoloads), it > makes it easier to write scripts that check for lexical binding support > in source files. That is an advantage too small to justify the change. Skipping files that all match a simple wildcard pattern is easy. We will always need to skip some files anyway, for example .dir-locals.el. It makes no sense to me, sorry.