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#74261: 30.0.92; Remove modeline warning for explicit uses of dynamic binding Date: Mon, 25 Nov 2024 14:20:20 +0200 Message-ID: <86ldx7ijy3.fsf@gnu.org> References: <87h68hzqmw.fsf@librehacker.com> <861pziklbo.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19662"; mail-complaints-to="usenet@ciao.gmane.io" Cc: christopher@librehacker.com, drew.adams@oracle.com, 74261@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 25 13:21:23 2024 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 1tFY5j-0004uy-An for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Nov 2024 13:21:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFY5R-000664-Gp; Mon, 25 Nov 2024 07:21:05 -0500 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 1tFY5P-00065e-V0 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 07:21:04 -0500 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 1tFY5P-00030F-Hi for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 07:21:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=qPsLSW48KcMbvQk7N5vAxHG+0ZzFiJVbZXFS7+WLXG0=; b=G0MjSVrdMcD95w24k/IZN2GoWOU2h4Orj5D+RNVtY8vdO2q9wee0cvepoxNRv47y1f/XlfP1dVg4inS1tCQIgGKxpXGLjYdFzWstb4EFT0hfOQWVIOmcYiII3tuCWthlqOmzZmNen5wXiReau2j0jhb+F7eDCVJubX0Iltwrhq2EXeEP4IXBv31X/ZKcPDWcmHgq60Cgp+hFf0YSk3KM6j0UksAY/75juW+c+R47xHE9DrYsf9/Z41Xgp5jwtbNZ5tU7uxZ13T6HKbb3A98V+vKqh7xJgNji/oG8+b7zy0pxue1SMP+IJKxhqbib23wY/TjZMrd5EpQu6ggMV8UwGA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFY5O-0004lq-DB for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 07:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Nov 2024 12:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74261 X-GNU-PR-Package: emacs Original-Received: via spool by 74261-submit@debbugs.gnu.org id=B74261.173253724618296 (code B ref 74261); Mon, 25 Nov 2024 12:21:02 +0000 Original-Received: (at 74261) by debbugs.gnu.org; 25 Nov 2024 12:20:46 +0000 Original-Received: from localhost ([127.0.0.1]:38220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFY57-0004l2-Kh for submit@debbugs.gnu.org; Mon, 25 Nov 2024 07:20:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFY54-0004kl-Tb for 74261@debbugs.gnu.org; Mon, 25 Nov 2024 07:20:44 -0500 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 1tFY4v-0002vO-6h; Mon, 25 Nov 2024 07:20:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qPsLSW48KcMbvQk7N5vAxHG+0ZzFiJVbZXFS7+WLXG0=; b=aETY9C1F1hjW QEbckZGqsGPawmD2t2oFM3i511X1x8fbhVXnEIifiltJ8QzieyVtqJ6RozGAISCM72Djs2RBmO9F8 f9g7d87dp+IZZOkJlp0eYDjwAGXLtY7TcEXSkpAZweZQaBZR8IaKOofjJtwaj/S3a+y+7oSv5mv0Q 5yR+ypNyso+z+eOy2VyGsD+ykjj3ZaFWjLr/NXMFxWn3Y9HtYNgDgZvOkxCm31GmHJCHYLIbPhaDL P+t25z+416Wk9Dq9fJTbTpydfR7sLz0l7qvcfUPWdAllvcuPGi2Ml6NiRvXLIrQ0BRnq8wTZmAeSt 4VYDCVQq2cJwf1qK+HkoFw==; In-Reply-To: (message from Richard Stallman on Sun, 24 Nov 2024 23:32:10 -0500) 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:295943 Archived-At: > From: Richard Stallman > Cc: drew.adams@oracle.com, christopher@librehacker.com, > 74261@debbugs.gnu.org > Date: Sun, 24 Nov 2024 23:32:10 -0500 > > > > So I think that the indicator that this file uses dynamic binding > > > ought to be somewhat loud, so that users won't overlook it. > > > I tend to agree, but only if the file does not already have a > > lexical-binding cookie which makes the file use dynamical binding. > > Are you assuming that the person looking at the file > is also the file's author? In that situation, I would agree: > you don't need to be warned that your file is set to use > dynamic binding if you set it that way yourself. > > But I think it is useful to show this warning when person A looks at > person B's file. Person A is likely to assume the file use lexical > binding, when just about all files do so; therefore, it is useful to > inform A that this file makes the unusual choice. That could be the case, yes. However, another way of looking at such situation is that if the author (person B) decided the file should use dynamic scoping, that's "good enough" for person A. For example, assume that person B is Emacs maintainers, and the file is part of Emacs. I guess which POV is taken depends on whether person A is about to hack on the file, or wants a seep understanding of its workings, or is just reading the code?