From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: unused local variables Date: Tue, 04 Dec 2007 07:28:48 -0800 Message-ID: <200712041528.lB4FSnGv012042@oogie-boogie.ics.uci.edu> References: <20071129.213256.14693006.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 1196782305 12072 80.91.229.12 (4 Dec 2007 15:31:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2007 15:31:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 04 16:31:54 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 1IzZkB-0002OM-LY for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 16:31:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzZjv-0006Kw-8C for ged-emacs-devel@m.gmane.org; Tue, 04 Dec 2007 10:31:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzZjb-0006AX-04 for emacs-devel@gnu.org; Tue, 04 Dec 2007 10:30:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzZjZ-00069V-F2 for emacs-devel@gnu.org; Tue, 04 Dec 2007 10:30:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzZjZ-00069O-6m for emacs-devel@gnu.org; Tue, 04 Dec 2007 10:30:53 -0500 Original-Received: from oogie-boogie.ics.uci.edu ([128.195.1.41]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IzZjY-0000Th-JV for emacs-devel@gnu.org; Tue, 04 Dec 2007 10:30:52 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by oogie-boogie.ics.uci.edu (8.13.6/8.13.6) with ESMTP id lB4FSnGv012042; Tue, 4 Dec 2007 07:28:49 -0800 (PST) In-Reply-To: (Katsumi Yamaoka's message of "Tue, 04 Dec 2007 20:12:57 +0900") Original-Lines: 26 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:84652 Archived-At: Katsumi Yamaoka writes: > >>>>> Kazu Yamamoto wrote: > > > The XEmacs byte compiler tells unused local variables. > > FYI: last week XEmacs in the CVS trunk (i.e. XEmacs 21.5-b28) > came to byte compile the default value section of defcustom > forms and report on undefined vars and functions found there. > For instance: > > (defcustom foo (if (and (fboundp 'string-as-multibyte) > default-enable-multibyte-characters) > (string-as-multibyte "foo") > "foo") > "doc string") > > While compiling toplevel forms: > ** reference to free variable default-enable-multibyte-characters > While compiling the end of the data: > ** the function string-as-multibyte is not known to be defined. > > (Emacs and XEmacs 21.4 don't do that.) I proposed the same thing here recently. Stefan implemented it, but it was rejected. You should be able to find the patch in the archives...