From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Declaring 'lexical-binding: nil' obsolete Date: Sun, 26 Sep 2021 08:13:49 +0800 Message-ID: <87h7e8w5vm.fsf@yahoo.com> References: <87r1dcw8hp.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19302"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Monnier , Emacs developers To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 26 02:14:54 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mUHoj-0004s8-JD for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Sep 2021 02:14:53 +0200 Original-Received: from localhost ([::1]:35620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUHoi-0001o0-GV for ged-emacs-devel@m.gmane-mx.org; Sat, 25 Sep 2021 20:14:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUHnt-00017l-VU for emacs-devel@gnu.org; Sat, 25 Sep 2021 20:14:01 -0400 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:41750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUHnr-0000hV-4o for emacs-devel@gnu.org; Sat, 25 Sep 2021 20:14:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1632615236; bh=eRuOUr9P5ECSpqOxWgJ8M6G6ri4O3CFaUG+qEOfFUvw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=SJRvUMK3ZaE7cymGUJrktneoYxfG1AXsN2uq4FqMO9S4512gtbdq8Bio3vPPXs+EZ48AGPLvxIz9IUGPdf0HhRoV69oxAtKwYC81zzdD7PjJ8xfR1yMH1daNRLNyHqS3H7mCFrKz1gm/JJ3aHhDYbkD+XrNYlEP7ONLxJ9WajzEzW1gtLCcwI/nmsNM1Dtx8l7kgmc37RR8+VXOIliRoOi+0rTeocB3HazZqeiXggttiRUMFl3rm0VyXunzGgF4j38LNkWsicWFdbCj75gemfAtpTZv0i5TfJt685OaW8PEXUU/Q+CSCm09jOuyEMy57D/4noCPVeyFRb9iNH68NzQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1632615236; bh=2qyrjowInQQmDNLjL2qYNZqvnOEhv0K1+/HHPTZmRDI=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=OGCxnTzSTmiIcksBpo0P2ZDEJwqcuR6lsJYPjVMZZHct7XYD5WiaxdD9dRDjGqssQaZImAQKLsfvkeYkyQn1chWbalDvA1NIY6fx/1XbjrepVnFXl/tgOUf+Gddrdt1hsBuf0ib1yyglksP6MzCwijPgltWDJ/ULW0m+fs2vMkXdbfjw+tWxUxruZVzC9zAtvXPn5KjQMW+swhu4a5hpsRJtGk1LOTG47quGzeCLIHShxja1s1s90FBR7+LWEarE/PYkEZ4TTZlAbIVxeqUmrB9wlM/GIhccTGgxsuv/ixPqIhO+QRi00vGQpzwWDjIRW7BpO677Pr2ALPzcEXmURw== X-YMail-OSG: bMYGY90VM1nf4htHcoNeuE7fI3SOQrBKS0LnuFNrgDUhxc0nZILgc7v5Q3jU7kf AehJ6Ay5B1APD1py6tlFRmhY8ScrXyaDVMRQAtZs7JUCEowYwo1EJ9DHRiFBrNxRlgiBkGru15ew Mti0y9aDuM4p3jgEs6.3q4JmMJXqKHIURE746cf6mqbt5Us90d5n6hk_0.XxYWp_ZmxVYGfwKXmv tiFQagpE.XcJNbR9hwgVe0BeLTcSxY8p4xeqQ7Ud9EKcR4fHEndj57aS8GvPdgn3KztlQ43k.EKS woQg4yHIEa_cEg8QJGDLqQumCfLtx4NNz_g1sOkneRecHowYsRZYPyUR..U2._hBpk_e.18qshQz _DjG.SuL_hgSb2V.UNYpWdLUud_hsotDH5GYaJfddFD3azaLH6XU3K.15_.uevKK1gTT3iTiPfUn jSPX9AQwKej9yp9rPF3FlRClS_CrFaolIxAz0hxBESO3Q9_3W7YBYkEWpd2A965q.hKaNP7YI4bj VRrpH0os7fqh34rg3KfDVU1_f_paf5yJbLYux2ODR3NpkaDeRzGLV8ByjSoJY3.xpWNNClnSP5.x .W8yJkF7mqUbLEAKwzNhLBA_KkfTEE5A3Ch1_FJnCWVExeHOgE80z3Eaxnl.C30U4YymCS2GrkO1 YV9eiKYJc4PfuEG0dRLgGUZRUOTAWUBJQIduqJRkCzqXEgCn8PQ7z87TG0ExiXugQZaLqYzlEuzw jqQiE4KLqMWss3abRW_iB2vmRqdvvBGv_LwWSa.qXzvdq0gdxOYBOSUcN._Hpj3btf94Uaopt9m0 7Lb.0RJ4OUkrZvqMH0_jUBdO6C9WPEU.72Btx6YTK7 X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sun, 26 Sep 2021 00:13:56 +0000 Original-Received: by kubenode504.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 99c55ecf958345383c6faf22d963e297; Sun, 26 Sep 2021 00:13:53 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Sat, 25 Sep 2021 17:04:46 -0700") X-Mailer: WebService/1.1.19043 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.33; envelope-from=luangruo@yahoo.com; helo=sonic307-10.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275490 Archived-At: Stefan Kangas writes: > The roadmap I propose will give you a decade or so to adjust, and even > then will you only need to change one line per ELisp file for it to work > just as it does today. > > Before then, the worst that will happen is that you will see a warning. Yes, but is there any compelling reason other than "it's obsolete" to make this change? If it's to prevent new Emacs Lisp authors from inadvertently writing dynamically-bound code, I suggest to rewrite (eintr)Prevent confusion and other places in the documentation aimed at new users that seem to encourage them to write dynamically-bound code. I'm sure that a large part of the dynamically bound code present today stems from users not knowing better; instead of a blanket obsoletion, better and more immediate solutions can be found, such as updating the Introduction to Programming in Emacs Lisp to not refer users to dynamic binding. Perhaps a notice in Emacs Lisp mode when creating new dynamically bound files would also be prudent. (For instance: "This file is being dynamically bound. If you don't intend for it to be this way, please read (elisp)Lexical Binding")