From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66636: Move lexical-binding warning from checkdoc to byte-compiler Date: Fri, 20 Oct 2023 15:13:15 +0800 Message-ID: <87lebx4vhw.fsf@yahoo.com> References: <48764CD1-C80F-4613-9848-BD8CA9203A40@gmail.com> <87ttql4yfq.fsf@yahoo.com> <83wmvhsron.fsf@gnu.org> Reply-To: Po Lu 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="22706"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: mattias.engdegard@gmail.com, Stefan Monnier , 66636@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 20 09:14:54 2023 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 1qtjif-0005ft-JU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Oct 2023 09:14:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtjiP-00008q-Px; Fri, 20 Oct 2023 03:14:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtjiO-00008I-Af for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2023 03:14:36 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtjiN-000207-H7 for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2023 03:14:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtjio-0004ID-7b for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2023 03:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Oct 2023 07:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66636 X-GNU-PR-Package: emacs Original-Received: via spool by 66636-submit@debbugs.gnu.org id=B66636.169778604616411 (code B ref 66636); Fri, 20 Oct 2023 07:15:02 +0000 Original-Received: (at 66636) by debbugs.gnu.org; 20 Oct 2023 07:14:06 +0000 Original-Received: from localhost ([127.0.0.1]:38529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtjhu-0004Gd-Ge for submit@debbugs.gnu.org; Fri, 20 Oct 2023 03:14:06 -0400 Original-Received: from sonic313-10.consmr.mail.ne1.yahoo.com ([66.163.185.33]:40887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtjhp-0004Fu-Ez for 66636@debbugs.gnu.org; Fri, 20 Oct 2023 03:14:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697786008; bh=MpDPAFGQvOGEXjEw/JS/1TnPCikj/eeaPGUlGPoypcc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=G9NM/3K5c9aC9hB9CGlVJVfac8bc2nPF+OV91e+9Vy3E59uhrHS1OHRKo8IfDWl/kNKJwjkR1JYqoQ/vae5MfQyKmkTe1kAsiFRVw1f3g3xEngqZSeasIpXrxkSoVdhKa5TcugErr8//Iz9XRsydhmjxlu3XP9Xm5yQDhpPWS/Lbe+2imMBNemT8ds2E08Qsm4qAKtM1IZOsUP5+NE+orjhyOeVKCL2vnOSa5NnaXeqpB9neoW10LRGVFLVaYxtmkm/vzNob1l66kTWThqk5Xbs8A3fXkTBi315cDQhmg8s32WV52Q+LjM0sipXG7JyDIJttZUMqmSM2+5hhJ4orHQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697786008; bh=4rYOAt5PpJc0Gc5yIYZFh7TzSJin+j4F7GgfEWqIFVw=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=qHHem3MWGJ3yPFyfWhVMceMc1z6pKNqBSwKjOX7XM/P7JJIb8rtxLH/TmEUy4E+RMK18YRzITpeQ6UObbwclbzHrQsUlSPbHm+EcX8MwKAfWMmD1efnSvMsUbZ70AW2IHMTbdxWhaf/MeVR576a2jrpSO3AljoeB4eMpWT8NMtDOqdf6dcaGGN5uQZGu49eVKCmRVbn60g9pWVwCjhl61sIfITJ/QxibSzCCsa7H1+hq5ZVKlEXn9eiuQyE32W+2x69sSOcYq8rHGaTDSqQdJmAYIF7ZqRys6fe8UwlMYz9x7VNgm04HcA0BMuctD5nLXJgheNhyoCKHRx9e6E7VhA== X-YMail-OSG: .DhYlDgVM1lLm1nDqEbPJyLAGzZn6emdAUOgYuZDjrVqePzM8RadsZlYy1XJlEX PC1j4Fr86g2.E0zSbdKL5XktP91Jc75o.GiYkqZHPx7vTq5oJZ30v1E8aCeiAHRYZNnpqc5FsgD6 amNGjW3W7m7JhY_aSNp9TdK0Z_jDks5W0Bn_cagyP389CAli4CgPQoggYo.byxrF4Vwt4r_tK_WO wViC96rTyVbSzVxUtFZe9fDibYhxbwldvVgpZstf3LpNzdNvIGtH2W9Td3Jfya00ItCIfkIM2NrQ MVu5eoj3MiOvoz3Yo7txR65SFMtxX7DI.LPhBz59L3QtZGolOz3v2Xnnrm3CiYQSQwWsCzxuOTiM kbPPxk15JcaCBL830cdNpxAWSRQGhJBstGZZLBseJiRoY37MXAonSElpHXFkMmt8Yd.9loNRh3_Z sMmEXdV1Ys5qdH544Q1A7w_dWu3izxFLtzaoA_L33v4nxqxmDLwI26TXAqcrNuRYCA7e5RG0eZMY v6Sk1OUFWQ8DyVFFadFMwar5_YS_8JNMk4Bn95Y19ukuJqdMY3z_m3uhwhAC7Up5ildd2oRQnFuw qMdprYvQ3bUtq5ae3zUiEzWT4PQBvzMfHM4xG_6sIYqjQaC7NGfxmNxZjD1soRbirRApLcnEWtK_ .8qxcAv4ZRz3ik0Sp_uZzUxrapZVp5qExJSe0ba5U5ACaUk1hrvn1U1EZUrNhe8q0TmQ5qz9kDei mWo9s1Ycz.8GoStubSWMuYhSKF7Wee1x0dFdyewo2RZp2gmdfc0JR3X1SHFl7rZj9mrmyoiNFbqR PtV4Dqsk1HRPUrZjzRF3ZoWspOPO9yhU6Capj.Mu0d X-Sonic-MF: X-Sonic-ID: f83a7ae7-f69a-41e4-9580-c2a3597687e9 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Fri, 20 Oct 2023 07:13:28 +0000 Original-Received: by hermes--production-sg3-57f7997989-fcsf4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2d0525da230fb6f509d9959b8c4fab0b; Fri, 20 Oct 2023 07:13:22 +0000 (UTC) In-Reply-To: <83wmvhsron.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 Oct 2023 10:01:44 +0300") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272778 Archived-At: Eli Zaretskii writes: >> Cc: 66636@debbugs.gnu.org >> Date: Fri, 20 Oct 2023 14:09:45 +0800 >> From: Po Lu via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> Mattias Engdeg=C3=A5rd writes: >>=20 >> > The warning about a missing lexical-binding cookie rather belongs in >> > the compiler than checkdoc, because it's not about documentation or >> > style but code generation and ability to detect errors, both which are >> > hindered by a missing cookie. >> > >> > Moving the warning to the compiler also makes it more widely seen. >>=20 >> So long as this warning is only displayed within code part of Emacs >> itself, there are no valid objections to such a change. >>=20 >> But you have instead elected to generate warnings whenever such files >> are byte-compiled. There exist many packages which do not enable >> lexical binding, whose authors have studiously elected not to: most of >> Drew Adams' for example. So this is tantamount to punitive action >> against their users, in the form of an unsightly warning each time such >> packages are installed. > > Cannot such packages disable this warning in file-local variables? I don't think so, at least insomuch as byte-compile-warnings doesn't function as a file-local variable.