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 13:28:26 -0800 (PST) Message-ID: References: <925908cd-bc9d-4c57-9cec-d961c9dbad95@default> 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="20558"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca To: Stefan Kangas , 44854@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 24 22:29:28 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 1khfsO-0005FL-Hv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 22:29:28 +0100 Original-Received: from localhost ([::1]:59764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khfsN-0003nN-KJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 16:29:27 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khfs3-0003my-Fz for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 16:29:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khfry-0005W0-0C for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 16:29:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khfrx-0003Y8-TN for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 16:29:01 -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 21:29:01 +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.160625331813612 (code B ref 44854); Tue, 24 Nov 2020 21:29:01 +0000 Original-Received: (at 44854) by debbugs.gnu.org; 24 Nov 2020 21:28:38 +0000 Original-Received: from localhost ([127.0.0.1]:33278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khfrZ-0003XU-Vg for submit@debbugs.gnu.org; Tue, 24 Nov 2020 16:28:38 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:54354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khfrX-0003XH-O7 for 44854@debbugs.gnu.org; Tue, 24 Nov 2020 16:28:36 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AOLISKK069573; Tue, 24 Nov 2020 21:28:29 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=3G1pFufuIvy21JTjBHJLddLDSlonEmvNbN8PqUDuCB8=; b=Fn88kW+ub9pfn4H4JBue1H4L0Hs0IjwQ4CeKJsNPuZFGgEHorcwgFGjdUyD49uG8hnwh P5uLMovzOA9ufORwhz5/ZM/5X09FKQe5AhfnRliLnZMxHf5Ec/2J2yyeqVFa2eii6wM7 dTrhm8i15fzM0c06QngFnX1uWQZgf3d7TAYz60OVH4LGgkUDhf7V2hzSXF5AKBOxRyMA 1Z3bKeX7QpzivdT3+yw3EGiSNLNPgK9bkjevbDWyMUg6d/75vFKu3Dy9acHsPRMwKDdB iEnJuNAnZHXKsRV2ra1ZOjZacDXRuKU5T3E4MyXhsADq3l2P0lrfZOGYcjumRHSDdiif Bg== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 3514q8hprj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 24 Nov 2020 21:28:29 +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 0AOLFr3m117178; Tue, 24 Nov 2020 21:28:29 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 34ycnt263t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Nov 2020 21:28:29 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0AOLSRYb028028; Tue, 24 Nov 2020 21:28:28 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=999 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-2011240126 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9815 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 clxscore=1015 impostorscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 malwarescore=0 adultscore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011240126 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:194131 Archived-At: > > If I understand this right then yes, I object strongly. > > (It's possible I don't understand it right, however.) As I said, I may misunderstand what this change does. I thought it was adding `lexical-binding' (by default) to each file that gets autoloaded: > > Why on earth would we assume that a user who wants to > > update her autoloads for a given user directory or > > file would necessarily want to force the code to use > > `lexical-binding'=3Dt? >=20 > This will not force any other files to use lexical-binding. Good. So what is, or are, the NON-other files where this will force lexical-binding? > I don't understand what makes you think it would? Reading the code and trying to understand the patch. I'll be glad to learn I've misunderstood, and that this doesn't impose lexical-binding anywhere. I don't see any necessary relation between (1) autoload files or autoloading and (2) imposing or declaring lexical binding by default for some files. What am I missing? > AFAIK, there is only one > thing that enables `lexical-binding' and that is if that buffer local > variable is set to t. (You can also provide the optional LEXICAL > argument to `eval', but I don't think that applies here.) So what does your patch do wrt lexical binding?