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

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

Re: Avoiding 'reference to free variable' warnings while splitting elisp


From: Jay Belanger
Subject: Re: Avoiding 'reference to free variable' warnings while splitting elisp source files
Date: Sat, 23 Mar 2013 11:11:19 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Is there a sane way to split the source of an elisp file
> while avoiding the 'reference to free variable' warnings
> when byte-compiling?
>
> The problem arises when a variable defined in one file
> is used in another.   How does one avoid those errors?

You can put
(defvar variable-name)
in the other file.


reply via email to

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