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 19:11:37 +0100 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=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196446322 31764 80.91.229.12 (30 Nov 2007 18:12:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 18:12:02 +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: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 30 19:12:08 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 1IyALJ-0005Bt-TG for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 19:12:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyAL3-0001ag-QI for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 13:11:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IyAKz-0001Z7-8U for emacs-devel@gnu.org; Fri, 30 Nov 2007 13:11:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IyAKw-0001Xn-SO for emacs-devel@gnu.org; Fri, 30 Nov 2007 13:11:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyAKw-0001XZ-KH for emacs-devel@gnu.org; Fri, 30 Nov 2007 13:11:38 -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 1IyAKw-00076b-C3 for emacs-devel@gnu.org; Fri, 30 Nov 2007 13:11:38 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so2957838wah for ; Fri, 30 Nov 2007 10:11:37 -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=svz+ZWFaf+X6j91uKELEmh4AyuAsojZMdMEdJx2kcKY=; b=F4PBczA1Js2LYC4K10LaRrh6hlHR5dAgLx8CNB5NLKGOPiMgOAiKf7sJrwxWlqsLSnc8FZImHQXsjggZaoIXKpXL2cbhBpWK39LpoV/MfHLFm5Ezp14BGTkId0pPtnN9rl+FrzSGGrGEDwk4ZkBaR9yKRzDzfgysH08hTNXgMZI= 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=jnAwPqYDHLvmjSijRvbRfMYWymyWel5LM+zd//gTYazujdvovSjOOdJtwvbmT0DpMd8jzWS/uJL8HDClQ4bKw8dh3FH1gNB+B5aW0VUiIwS7I3mcumCP1V8e7rpwGyldixlrAWzcZBf6dIIaXQNI7K7dw9nJ1aTg8lue44SDRU0= Original-Received: by 10.115.54.1 with SMTP id g1mr1400832wak.1196446297456; Fri, 30 Nov 2007 10:11:37 -0800 (PST) Original-Received: by 10.114.170.5 with HTTP; Fri, 30 Nov 2007 10:11:37 -0800 (PST) In-Reply-To: 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:84370 Archived-At: On Nov 30, 2007 4:59 PM, Stefan Monnier wrote: > Right. So you're OK with adding (defvar my-dynamic-var) in one of the > files but not in both? Why is that? I'm not really opposing. I don't like warnings, nor programming errors caused by subtle interactions (or unexpected ones). Once again: I like lexically scoped languages (Scheme excluded). I'm just not sure littering packages with (defvar var) or (declare-function function) is better. It certainly doesn't look clean. Juanma