From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: unused local variables Date: Fri, 30 Nov 2007 11:14:12 +0100 Message-ID: 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=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196417671 28756 80.91.229.12 (30 Nov 2007 10:14:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 10:14:31 +0000 (UTC) Cc: =?UTF-8?Q?=E5=B1=B1=E6=9C=AC=E5=92=8C=E5=BD=A6_Kazu_Yamamoto?= , emacs-devel@gnu.org To: "David Kastrup" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 30 11:14:39 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 1Iy2tK-0003as-W7 for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 11:14:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy2t4-0006Zf-Ow for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 05:14:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iy2sy-0006XR-M7 for emacs-devel@gnu.org; Fri, 30 Nov 2007 05:14:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iy2sw-0006Wk-F3 for emacs-devel@gnu.org; Fri, 30 Nov 2007 05:14:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy2sw-0006Wh-08 for emacs-devel@gnu.org; Fri, 30 Nov 2007 05:14:14 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iy2sv-0005Vg-Kc for emacs-devel@gnu.org; Fri, 30 Nov 2007 05:14:13 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so2739376wah for ; Fri, 30 Nov 2007 02:14:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=YgYVkgc/wepab5D347FnZ6gNhiG/Z990PZgGFKBc0SI=; b=NK40rKfTO/wCqRRWi2vcfJaSpsAkstSSHUgFRxRsVmjvAteUtbggv3PlepXp/Qt4kllERujZOgn4BSea9dkqZZP2pUJHmmSPtsA9yDOlIHJOjEDK5wjBz18qAWCPpIZLq/1sBBIPS/uupRRH7FO99g37ddr3Tcpcu1QAs0y2nzg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aWAgCUa+7W1pXmoyMn1PYpYZuredTLV8de9gB0mRal1UckO0jIdew7MPdhgrjo4k7CreltgTB4hyzOSn8L0GJuctz65HCSzsf1Z7asczeNMBGW9CFCWZ66hUEvKMFjwH9awXfLU2GRjqBN4jzAsW3xpE7VJ5RqZBeZLRgWV5gQ0= Original-Received: by 10.115.79.1 with SMTP id g1mr356518wal.1196417652590; Fri, 30 Nov 2007 02:14:12 -0800 (PST) Original-Received: by 10.114.168.11 with HTTP; Fri, 30 Nov 2007 02:14:12 -0800 (PST) In-Reply-To: <85r6i812aq.fsf@lola.goethe.zz> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:84344 Archived-At: 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: "Define symbol as a variable, and return symbol. You are not required to define a variable in order to use it, but the definition can supply documentation and an initial value in a way that tags can recognize." 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. Juanma