From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#44854: [PATCH] Add lexical-binding cookie to autoload files Date: Tue, 24 Nov 2020 12:54:39 -0800 (PST) Message-ID: <64079950-3f2d-44c3-bf63-ad401f537cf3@default> References: <837dqatsjd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25576"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44854@debbugs.gnu.org, monnier@iro.umontreal.ca To: Stefan Kangas , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 24 21:55:10 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 1khfLC-0006XO-JJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 21:55:10 +0100 Original-Received: from localhost ([::1]:38356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khfLB-0000IU-KE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 15:55:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khfL4-0000Gf-F0 for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 15:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khfL4-0000ce-8D for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 15:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khfL4-0002gq-6t for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 15:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Nov 2020 20: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.160625129110320 (code B ref 44854); Tue, 24 Nov 2020 20:55:02 +0000 Original-Received: (at 44854) by debbugs.gnu.org; 24 Nov 2020 20:54:51 +0000 Original-Received: from localhost ([127.0.0.1]:33205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khfKs-0002gO-QB for submit@debbugs.gnu.org; Tue, 24 Nov 2020 15:54:50 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:43052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khfKr-0002gA-9z for 44854@debbugs.gnu.org; Tue, 24 Nov 2020 15:54:49 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AOKshJt138461; Tue, 24 Nov 2020 20:54:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=YPmGRd22ArNi0sML7cY2zRfBhWX7hEIijSn78WdJ/GY=; b=ZrvSQcv+eRkJLXN1W6jm4CioErrxFEBSlHRKooCTkwS8G7d6JRl+G56cDE9wuySIz7bp SCMn5e5ZFcZf2TscqzDSnWE8X0Xee3NO58xtTf8xzfhscE7TOp+lQ5pJomVwIeRICPWK ZCNLNc3qwDhcuYSHwP09WYs/eIGuH+bFWyhn9f3eABVOsisWNlJvgZuR20SB7+kwY5c2 emvraIESlvh7+cLsgqdvtHbQ4SdDmUrQ3GptOZaEPYlj6E9DizFL+DxnX9fkWHIOXh5o AQtha8Ds6QvDICUY/fTpI62diKornqpqYc3RNKyLtfrToK+d3j3iMRevQeCP922v1nyJ Qw== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 34xtum4w6v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 24 Nov 2020 20:54:43 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AOKnrRQ042401; Tue, 24 Nov 2020 20:54:42 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 34ycnt19h9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Nov 2020 20:54:42 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0AOKseNa017465; Tue, 24 Nov 2020 20:54:40 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9815 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 mlxlogscore=941 phishscore=0 spamscore=0 malwarescore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011240124 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9815 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 mlxlogscore=952 impostorscore=0 spamscore=0 mlxscore=0 phishscore=0 clxscore=1015 suspectscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011240124 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:194122 Archived-At: > >> Does anyone have any objections to, or see any problems with adding > the > >> lexical-binding cookie to autoload files, as in the attached patch? > > > > What are the benefits from doing so? >=20 > AFAICT, there are no immediate practical benefits. But if we ever want > to have lexical-binding enabled by default, many things will have to be > done. This is just another (admittedly small) step on that long > journey. Why would we put such behavior in autoloading? If a file is to be autoloaded then it's up to that file whether it should have `lexical-binding' be t. And when we get to the point that it is t by default there will presumably be nothing to do about that wrt autoloading. At that point, loading a file - ANY file, and regardless of how it is loaded (including autoloaded) - will turn on lexical binding by default.