|
From: | Jay Belanger |
Subject: | Re: Avoiding 'reference to free variable' warnings while splitting elisp source files |
Date: | Sat, 23 Mar 2013 11:51:14 -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. > > Nope. Because then the initialization depends on the order of loading > the files. If there is no initial value in the defvar, then the only thing the defvar does is quiet the compiler.
[Prev in Thread] | Current Thread | [Next in Thread] |