From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: daniel@bigwalter.net (Daniel Jensen) Newsgroups: gmane.emacs.help Subject: Re: Error byte compiling a file Date: Mon, 28 May 2007 08:32:54 +0200 Message-ID: <874plxmp9l.fsf@orme.bigwalter.net> References: <1180321141.069989.42050@i38g2000prf.googlegroups.com> Reply-To: indiscipline@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1180334443 5396 80.91.229.12 (28 May 2007 06:40:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 May 2007 06:40:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 28 08:40:41 2007 Return-path: Envelope-to: geh-help-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 1HsYuG-0003Cs-7U for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2007 08:40:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HsYuE-0004bX-RK for geh-help-gnu-emacs@m.gmane.org; Mon, 28 May 2007 02:40:38 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: individual.net PMlwPL8eaCX+Kjq+jtWfhw/gLM03GLqfFSfacHO9tKtm8TZftG X-Face: SNGmwsN&0DaHhS0!*%\@y"Wc^).,<; VsqY#}K/NJ:A Z6_>Md7x$Z9C1%BAu41M'12-8(f2{H*8OsnYv,K+y.szl1K>}{uC/>2?; k[KUiD=$}@z>odk|7Tk7i $A|{j7LhTt!:SdVp5Z, kKA247}--"-QLedxCbw|#&bh=R]Rd)kx{q+T'fG)9ayG`+\@g'3vx1Fd3bl -`3}Guvr!A"Z);"$|]CXW>YR5m"<[L User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.99 (gnu/linux) Cancel-Lock: sha1:YyjfEkQScK3AYo58Rlp3UMFSUWw= Original-Xref: shelby.stanford.edu gnu.emacs.help:148909 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44498 Archived-At: Davin Pearson writes: > Here is my trashcan system: > > http://www.geocities.com/davinpearson/research/2006/trashcan.el.html > > When I try to byte compile this file I get the following error > message: > > Compiling file d:/home/mylisp/trashcan.el at Mon May 28 14:51:54 2007 > ** reference to free variable trashcan--refresh-count > ** assignment to free variable trashcan--refresh-count > > The problem is that I WANT TO assign to the free variable trashcan-- > refresh-count. > > Should I simply ignore this error message then? Define the variable with defvar before use. You use the variable only buffer-locally, so put a call to make-variable-buffer-local after the defvar form. Then you don't need to use make-local-variable.