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 14:17:45 +0300 Message-ID: <831qdorzqe.fsf@gnu.org> References: <48764CD1-C80F-4613-9848-BD8CA9203A40@gmail.com> <87ttql4yfq.fsf@yahoo.com> <83lebxrt5n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3749"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, monnier@iro.umontreal.ca, 66636@debbugs.gnu.org, stefankangas@gmail.com To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 21 13:19:14 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 1quA0g-0000jR-1h for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Oct 2023 13:19:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1quA06-0000Ro-4B; Sat, 21 Oct 2023 07:18:38 -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 1quA03-0000R0-GG for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 07:18: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 1quA03-0002ix-7J for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 07:18:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1quA0U-00056q-Sh for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 07:19: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 11:19: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.169788710519574 (code B ref 66636); Sat, 21 Oct 2023 11:19:02 +0000 Original-Received: (at 66636) by debbugs.gnu.org; 21 Oct 2023 11:18:25 +0000 Original-Received: from localhost ([127.0.0.1]:42377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu9zt-00055e-3Q for submit@debbugs.gnu.org; Sat, 21 Oct 2023 07:18:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu9zq-00055P-EQ for 66636@debbugs.gnu.org; Sat, 21 Oct 2023 07:18:23 -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 1qu9zJ-0002QU-3O; Sat, 21 Oct 2023 07:17:49 -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=GZTVXhTcYk1sQCFws/lpzyvrbk/aDjIDFkActJHMfqU=; b=hp7JbFCM/AUOfS/Gg7Zu rLdC4vdvxslEpX27Yp7BELT5F9yIvOAHySqNgFcrgTIYenXQRXK+P90g+YinI4zYiPYXlKTWsVm5g sfqdCcE2OzvMwpDBjlkdVSyMygsvReUlDo/2mjA02PBgKnu6dlXMEWIvn/i+ogDmDPOb3Bf/AJb8/ 89DCs6o28czZkid7itN2sCMlKTF0jedg61kTgUdcpkrYo/yOZEi6iN1Pc8HPviWuZ6bPS4ew6HItC dBZ/m/muG5oZLZBrFI6qm0/MuBmgXfg2W7tVQ4LTGz5ahFKROzVcSXWmNfGiUsee9+NmCHelHXocF B6xf9dzo6K2mfQ==; In-Reply-To: (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Sat, 21 Oct 2023 11:53:58 +0200) 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:272866 Archived-At: > From: Mattias EngdegÄrd > Date: Sat, 21 Oct 2023 11:53:58 +0200 > Cc: monnier@iro.umontreal.ca, > luangruo@yahoo.com, > 66636@debbugs.gnu.org, > stefankangas@gmail.com > > We certainly care about users of legacy code. The warning is intended as a soft nudge to encourage users to convert their code to lexical binding, which is quite straightforward most of the time. > > When it's not, or when the user simply doesn't have the time or expertise to perform the conversion, it's just a matter of inserting `-*- lexical-binding: nil -*-`. Doing so will both silence the warning and buy the user some reprieve. A lot of reprieve, in fact. > > This should probably be pointed out in the NEWS entry as well. 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.