From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: unused local variables Date: Fri, 30 Nov 2007 10:59:39 -0500 Message-ID: References: <87wss1qd9e.fsf@ambire.localdomain> <20071130.092322.193982611.kazu@iij.ad.jp> <20071130.182726.126856507.kazu@iij.ad.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1196438432 2498 80.91.229.12 (30 Nov 2007 16:00:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 16:00: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 17:00: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 1Iy8Hb-0006VH-2w for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 17:00:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy8HK-0001P5-MX for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 10:59:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iy8HH-0001OD-5e for emacs-devel@gnu.org; Fri, 30 Nov 2007 10:59:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iy8HF-0001Nf-K7 for emacs-devel@gnu.org; Fri, 30 Nov 2007 10:59:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iy8HF-0001Nc-Fp for emacs-devel@gnu.org; Fri, 30 Nov 2007 10:59:41 -0500 Original-Received: from tomts40.bellnexxia.net ([209.226.175.97] helo=tomts40-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iy8HF-0006F7-6v for emacs-devel@gnu.org; Fri, 30 Nov 2007 10:59:41 -0500 Original-Received: from toip7.srvr.bell.ca ([209.226.175.124]) by tomts40-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071130155940.UCUK1617.tomts40-srv.bellnexxia.net@toip7.srvr.bell.ca> for ; Fri, 30 Nov 2007 10:59:40 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah4FAE/CT0dGN4zh/2dsb2JhbACBWw Original-Received: from bas1-montreal42-1178045665.dsl.bell.ca (HELO pastel.home) ([70.55.140.225]) by toip7.srvr.bell.ca with ESMTP; 30 Nov 2007 11:00:25 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E88EE7F62; Fri, 30 Nov 2007 10:59:39 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Fri, 30 Nov 2007 16:38:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:84362 Archived-At: >> BTW, in the above example, the byte-compiler already complains in the >> `test' function, so it's not like it's going to make that big >> a difference. > Of course, there's no warning now if the function is in a different > file, perhaps with a (defvar my-dynamic-var). Right. So you're OK with adding (defvar my-dynamic-var) in one of the files but not in both? Why is that? Stefan