From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: unused local variables Date: Fri, 30 Nov 2007 11:23:34 +0100 Message-ID: <85hcj4117d.fsf@lola.goethe.zz> References: <87wss1qd9e.fsf@ambire.localdomain> <20071130.092322.193982611.kazu@iij.ad.jp> <20071130.182726.126856507.kazu@iij.ad.jp> <85r6i812aq.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196418212 30464 80.91.229.12 (30 Nov 2007 10:23:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 10:23:32 +0000 (UTC) Cc: =?utf-8?B?5bGx5pys5ZKM5b2mIEthenUgWWFtYW1vdG8=?= , emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 30 11:23:40 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iy324-000600-HO for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 11:23:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy31o-0001nf-AB for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 05:23:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iy31i-0001mc-S5 for emacs-devel@gnu.org; Fri, 30 Nov 2007 05:23:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iy31h-0001mB-1t for emacs-devel@gnu.org; Fri, 30 Nov 2007 05:23:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy31g-0001m8-RP for emacs-devel@gnu.org; Fri, 30 Nov 2007 05:23:16 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iy31g-0007wp-B7 for emacs-devel@gnu.org; Fri, 30 Nov 2007 05:23:16 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iy31f-00010Z-9S; Fri, 30 Nov 2007 05:23:15 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 2EDA91C4D3AA; Fri, 30 Nov 2007 11:23:34 +0100 (CET) In-Reply-To: (Juanma Barranquero's message of "Fri, 30 Nov 2007 11:14:12 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:84345 Archived-At: "Juanma Barranquero" writes: > On Nov 30, 2007 10:59 AM, David Kastrup wrote: > >> I consider this quite reasonable. If my-dynamic-var is used for passing >> information across function boundaries, it deserves being declared in >> the same scope. > > I don't know whether it is reasonable, but it is a departure of the > current use. > > The docstring of `defvar' clearly says: The docstring is not defining "current use". > Getting a warning is tantamount to be required to define it... > > Now, I'm all for lexically scoped Lisp and (declare (special > mydynamic-var)) and the like, but clearly that's not the route elisp > is following. It is pretty much the current practice in Emacs code. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum