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:07:53 +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 1196446090 30893 80.91.229.12 (30 Nov 2007 18:08:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2007 18:08:10 +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:08:18 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 1IyAHh-0003e9-0i for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 19:08:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyAHR-0000QH-2J for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2007 13:08:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IyAHN-0000Q1-8i for emacs-devel@gnu.org; Fri, 30 Nov 2007 13:07:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IyAHL-0000Pl-PM for emacs-devel@gnu.org; Fri, 30 Nov 2007 13:07:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IyAHL-0000Pi-KY for emacs-devel@gnu.org; Fri, 30 Nov 2007 13:07:55 -0500 Original-Received: from wa-out-1112.google.com ([209.85.146.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IyAHL-00060b-5J for emacs-devel@gnu.org; Fri, 30 Nov 2007 13:07:55 -0500 Original-Received: by wa-out-1112.google.com with SMTP id k34so2955310wah for ; Fri, 30 Nov 2007 10:07:53 -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=7lcnQFBwd1H1V9NLoXjj/96ZYQpIxepVJJZWK6MdXIs=; b=jgoFCpb9YFoqQB3fjTHcU91rIJkiOyOf1Ll3fmbtYFdcxm2m8+eESeCrlYMoNgO6BPjgnnxBhNy1ynLHSmC4L1Ob64ddF4DpKbXzmeCUwYa/dZtPC5FKzWLgFzkm4IGYOM7mELyH53r7Ugq1o3U6s2gT9+r1eg/f63xn9BYdNuM= 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=DiNh3MxCc996jonux6XX8LIxElsAt1F/3nsJCT93HqHz9tjODp22n0DId6jXztXuwhwMWl0ylBYG5NQndH3g6qYiMjV86YERtGTREo3lEsn1cJOIUNky2DQdlkYyIymZfDEG4HZx9k6w5j//SJ4QO0DLAoYXiRrgDe/qOLHcAvY= Original-Received: by 10.115.92.2 with SMTP id u2mr68212wal.1196446073747; Fri, 30 Nov 2007 10:07:53 -0800 (PST) Original-Received: by 10.114.170.5 with HTTP; Fri, 30 Nov 2007 10:07:53 -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:84369 Archived-At: On Nov 30, 2007 4:58 PM, Stefan Monnier wrote: > Those warnings do catch left-over unused variables as well. > And they can easily be silenced by adding a `defvar'. True. > Sure. Now, find me an example of a use of `boundp' on a variable for > which there exist no defvar. Lots. Oh, you mean no defvar and no defcustom... :) I don't know. I suppose they're rare indeed. > It will also give false positives. I'm quite sure of it... Juanma