help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error byte compiling a file


From: Daniel Jensen
Subject: Re: Error byte compiling a file
Date: Mon, 28 May 2007 08:32:54 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.99 (gnu/linux)

Davin Pearson <address@hidden> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]