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#66706: [PATCH] Automatic elisp dialect insertion Date: Wed, 25 Oct 2023 11:01:00 +0800 Message-ID: <87h6mf1k43.fsf@yahoo.com> References: <17C83052-7946-45DE-B660-DA7EB82001B0@gmail.com> <83sf61mb54.fsf@gnu.org> <98CD592C-0E82-4795-8168-2B5E597FF7A7@gmail.com> <8334xzlvy9.fsf@gnu.org> <87pm131pq6.fsf@yahoo.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24964"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 66706@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , stefankangas@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 25 05:01:59 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 1qvU9e-0006Gm-Qa for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Oct 2023 05:01:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvU9G-0006pi-AH; Tue, 24 Oct 2023 23:01:34 -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 1qvU9E-0006pT-TY for bug-gnu-emacs@gnu.org; Tue, 24 Oct 2023 23:01:33 -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 1qvU9E-000280-LE for bug-gnu-emacs@gnu.org; Tue, 24 Oct 2023 23:01:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvU9i-000082-6L for bug-gnu-emacs@gnu.org; Tue, 24 Oct 2023 23:02: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: Wed, 25 Oct 2023 03:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66706 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66706-submit@debbugs.gnu.org id=B66706.1698202911476 (code B ref 66706); Wed, 25 Oct 2023 03:02:02 +0000 Original-Received: (at 66706) by debbugs.gnu.org; 25 Oct 2023 03:01:51 +0000 Original-Received: from localhost ([127.0.0.1]:57012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvU9W-00007b-JY for submit@debbugs.gnu.org; Tue, 24 Oct 2023 23:01:50 -0400 Original-Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]:43982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvU9T-00007N-Ge for 66706@debbugs.gnu.org; Tue, 24 Oct 2023 23:01:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1698202872; bh=2QeQ2jByol8dHzkqdbxTGIt76l7W6kVuXVl/XLpZSf0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=DvzGjAILonKv2laWCgAe7ejVzT+JoO0y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eCNC1hHTm0dNpUgL78BXHLf.s7Zb0839g.jFPf_MO VSK4jNNHUah1jx33urUe0o.sMCtWlr0CkghH0Y7yT5FvOdUfsiKxlHYTAW07RVU.hUteQ0cFbpxz 9jhxEvtmpu0MGTVpvxsqNIhEjsTxebh9zpVnx0CBv9OUoAKwGkumxYum8MoqdjUiZOp_xEYBT2do CV0cjZ3gA08OOuDE6FzGsG6NF8IpT8uHHZtiSS8DHf6Pe_Gb37cG.Gy3Wserhp8ypeg.bP5rd_.z qRldgwLUJ6PrzR_c_l9dSjzrBELJjwstxj3evdeW.6C2GyMrCRdRxCJbWHlKLmcOC3jMI1QsM5Sl TvZbZRgnR_Ze15AQqOhrHkmuxRpRkxVizvCfRg8gRAhI8dPpVXozJIkxx0h64iEwfJrW5xEPI33i eRNtnzWyAiW_ihWeKwPZCr7Mw7nchvKoh_WxL4hLgnRERyJCrbe08MSPlVn1Nai7WL8e71zzkstG thaRqheA_t1WH4JPkjsfe7SGaM7kIM3LQ6QDST2L.LLeN8C08AlsP5hU2UlwOO5CSJOTUgrHrSOO GhO0tyBBVPSR_OC6ajj2pFgfs3yDyNUUuM1ALZkiQ2 X-Sonic-MF: X-Sonic-ID: ed28a85b-c6bb-4ba9-8585-74d8a5f44b70 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Wed, 25 Oct 2023 03:01:12 +0000 Original-Received: by hermes--production-sg3-57f7997989-dp725 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 11eadcfc573d601c09ecd70e09d07e47; Wed, 25 Oct 2023 03:01:05 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Tue, 24 Oct 2023 22:01:25 -0400") 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:273141 Archived-At: Stefan Monnier writes: > The lexbind dialect is the dialect we recommend: > > Lately Emacs is moving towards using lexical binding in more and > more places, with the goal of eventually making lexical binding the > default. In particular, all Emacs Lisp source files and the > @file{*scratch*} buffer use lexical scoping. > > So why should a new file default to using the dynbind dialect instead? Because that is the default, rather than a mere recommendation. A suggestion is an idea its recipients are meant to judge for themselves, on the grounds of its merits and deficiencies. > We simply can't satisfy everyone: either we impose the dynbind > dialect by default (the current situation) or we impose the lexbind > dialect by default. In both cases you can look at it as something > imposed out of a sense of superiority, but I don't think that is > a useful way to look at it. There is no quandary between default values here. This change is borne out of both a desire to _retain the status quo_, and a belief that our users are of such low intellectual caliber as to require instruction for even the most elementary of tasks, so that the one pious way of writing Emacs Lisp code is inculcated into them from the outset. > Those users who read all the docs can easily turn that option off if > they so wish. We shouldn't decide on what's a good defaults based > on them. As mentioned above, we are not adjuding which form of variable binding is to be enabled by default. > Just to be clear: the long term goal is to eliminate the dynbind > dialect, or at least make it be an opt-in that requires taking extra > steps, such as adding a cookie to the file, whereas the lexbind dialect > should be the default. Not because dynbind is evil. Not because it > imposes an undue burden on the implementation. > But because having two dialects imposes an undue burden on our users. > Those who read all the docs may not care, but all the others are > vulnerable to the usual "I copied the code from that webpage and it > doesn't work" because the code on that webpage used the other dialect. I find this categorical dismissal of the intellectual or problem-solving capacity, and perhaps fortitude if you will, of Emacs users very patronizing, needless to say with my Emacs user hat on. Furthermore, it is quite dubitable that minor customizations of the sort found on most web pages are suceptible to influence by the type of variable binding used.