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#66636: Move lexical-binding warning from checkdoc to byte-compiler Date: Sat, 21 Oct 2023 19:08:28 +0300 Message-ID: <83edhoq7pf.fsf@gnu.org> References: <48764CD1-C80F-4613-9848-BD8CA9203A40@gmail.com> <87ttql4yfq.fsf@yahoo.com> <83lebxrt5n.fsf@gnu.org> <831qdorzqe.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27316"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, mattias.engdegard@gmail.com, stefankangas@gmail.com, 66636@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 21 18:10:11 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 1quEYE-0006sg-ML for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Oct 2023 18:10:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quEXg-0001Ou-Qr; Sat, 21 Oct 2023 12:09:36 -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 1quEXf-0001OM-8P for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 12:09:35 -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 1quEXe-0003FS-Sa for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 12:09:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1quEY6-00034r-Ga for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 12:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Oct 2023 16:10: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.169790455211742 (code B ref 66636); Sat, 21 Oct 2023 16:10:02 +0000 Original-Received: (at 66636) by debbugs.gnu.org; 21 Oct 2023 16:09:12 +0000 Original-Received: from localhost ([127.0.0.1]:44933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quEXH-00033K-Ki for submit@debbugs.gnu.org; Sat, 21 Oct 2023 12:09:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1quEXC-00032m-DW for 66636@debbugs.gnu.org; Sat, 21 Oct 2023 12:09:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1quEWe-00034L-FR; Sat, 21 Oct 2023 12:08:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=TmqM6s+TDFoUJHSAGxlLDABaRrPbeW7obdNiMTC0e2k=; b=DI7wPKOrEAjRhy9OyNb4 VD7mZRS6zvSqixWJMvMZA3g7ghOiD/DMHMrZnUdqEHzdL6gqVWsS7KQb037am7N3BEEJy7WfLIGsS kWgXcZrdwwUTWaYLa5bCzhP5Ga+yi1aKbGGI/OWxjTynLWktmb1Qa76oEMQUoXrWpX1+jflLdeZbo CT6bR5HhfcYdHxWHaDWx4OO8WyH0/TPV/mz0h7mx37ciUU5EmWlLJXSTSInhrJl4C7WIlolIkek2x 8LX0f5dsJLPVUnRNwrFHP04Xp640KuKtwScZnE5qRyw9V+dVajoE0HVPUnGiRWiFb6IXGomMLcHjY UVH/VfIBzyCmmQ==; In-Reply-To: (message from Stefan Monnier on Sat, 21 Oct 2023 11:44:55 -0400) 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:272921 Archived-At: > From: Stefan Monnier > Cc: Mattias Engdegård , > luangruo@yahoo.com, > 66636@debbugs.gnu.org, stefankangas@gmail.com > Date: Sat, 21 Oct 2023 11:44:55 -0400 > > > If specifying lexical-binding:nil in the first line is the solution > > for those who want to keep dynamically-bound code, then yes, it should > > be definitely in NEWS, and probably also in the ELisp manual. > > FWIW, I think this would be a disservice to them (and to ourselves). What will? > We do want to allow people to silence the warning with > `lexical-binding:nil`, but we don't want to encourage it. NEWS is not about encouraging anything, it is about fire escape. The manual encourages (or discourages) certain practices, but NEWS is about something else.