From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Recommend lexical-binding in Coding Conventions Date: Wed, 21 Oct 2020 09:33:18 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6839"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 21 15:37:28 2020 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 1kVEIx-0001fT-4G for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Oct 2020 15:37:27 +0200 Original-Received: from localhost ([::1]:41788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVEIw-0004Ka-5M for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Oct 2020 09:37:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVEF4-0000N4-OF for emacs-devel@gnu.org; Wed, 21 Oct 2020 09:33:26 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64642) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVEF1-00056M-4p for emacs-devel@gnu.org; Wed, 21 Oct 2020 09:33:25 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 90E4C440525; Wed, 21 Oct 2020 09:33:21 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B5407440519; Wed, 21 Oct 2020 09:33:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1603287199; bh=K35PXKUxRtTq/ynDDuW+s/H9s7WzNoiSWf5rsQpdAj0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=cv9yDMYMBOeT2phA+sR490/uLr19LRBKDeNaRWzNd2Wv6Bm3/giDbzFqZRVU33pWB EQ68SuWyZzJfpP3l5uSrM0lMaLn4Rac7hRobuhdr2tZn/OMmpHdRt9rG9Zw6nZKSRW WdjNeWlNvY1S0//81aOEMkHgOoeWMTKcVhLE+YBZHEpJptIujEQvMRqMmhD0BlqGOY 1tE9j0ZRRvwiJOaPR0v7rRWxYP2MpcBW8MHhaiJfkfdk4l2oUw9i4saclDzOw8tA5S jTTj7YrBnmcKxmi6jELpXP/kPIkzA1bFKjrYJ6BYi2H/IVIkjnZyEBecP86MKNzRrG 85wmDoW8bpkaw== Original-Received: from alfajor (unknown [157.52.9.240]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 94AC01202A4; Wed, 21 Oct 2020 09:33:19 -0400 (EDT) In-Reply-To: (Stefan Kangas's message of "Tue, 20 Oct 2020 18:05:57 -0700") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/21 09:33:21 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:258225 Archived-At: > +@item > +We recommended to enable @code{lexical-binding} in new code, and to > +convert existing Emacs Lisp code to use lexical binding if it doesn't > +already. @xref{Using Lexical Binding}. There's a minor risk of confusion where this could be taken to mean that we recommend code should be rewritten not to use any dynamically scoped variables at all. I'm not sure what would be the best wording to avoid this confusion. Maybe: @item We recommended to enable @code{lexical-binding} in all new code, and to convert existing Emacs Lisp code to enable @code{lexical-binding} if it doesn't already. @xref{Using Lexical Binding}. -- Stefan