From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: assignment to free variable byte compiler warnings Date: Fri, 22 Feb 2008 22:25:25 -0800 Message-ID: <200802230625.m1N6PPUB021666@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203748119 10461 80.91.229.12 (23 Feb 2008 06:28:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2008 06:28:39 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 23 07:29:04 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JSnsd-0001bt-7Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Feb 2008 07:29:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSns7-0000zL-Gl for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Feb 2008 01:28:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSns1-0000wJ-U3 for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2008 01:28:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSns1-0000w2-5d for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2008 01:28:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSns0-0000vz-WC for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2008 01:28:25 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JSns0-0001Si-Jg for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2008 01:28:24 -0500 X-ICS-MailScanner-Watermark: 1204352725.49558@uwxqMNtfWxkvunq/CbNcWQ Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m1N6PPUB021666 for ; Fri, 22 Feb 2008 22:25:25 -0800 (PST) Original-Lines: 35 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 10 (beta) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17565 Archived-At: As has been discussed on emacs-devel the byte compiler does not issue some free variable warnings because of using boundp on variable names that are let-bound inside the byte compiler. Renaming some let-bound variables in the byte compiler reveals these warnings: Compiling /tmp/emacs/lisp/./tree-widget.el In tree-widget-lookup-image: tree-widget.el:412:35:Warning: assignment to free variable `file' tree-widget.el:413:34:Warning: reference to free variable `file' Compiling /tmp/emacs/lisp/./vc-cvs.el In vc-cvs-register: vc-cvs.el:301:41:Warning: reference to free variable `file' Compiling /tmp/emacs/lisp/./vc-mcvs.el In vc-mcvs-register: vc-mcvs.el:260:25:Warning: reference to free variable `file' Compiling /tmp/emacs/lisp/./vc-rcs.el In vc-rcs-register: vc-rcs.el:265:62:Warning: reference to free variable `file' Wrote /tmp/emacs/lisp/vc-rcs.elc Compiling /tmp/emacs/lisp/./vc-sccs.el In vc-sccs-diff: vc-sccs.el:316:40:Warning: reference to free variable `file' Can someone please fix them? Thanks