emacs-devel
[Top][All Lists]
Advanced

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

void variable


From: Lars Hansen
Subject: void variable
Date: Sun, 25 Jul 2004 08:32:13 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk

Assume that you on the load path have a file foo.el containing the line

 (defvar foo 'x)

If you evaluate

 (let ((foo 'y)) (load "foo.el"))
 foo

you get

 Symbol's value as variable is void: foo

Observe that the loading may very well be implicit like in

 (let ((foo 'y)) (bar))

where bar could be an autoloaded function in foo.el or even in another module requiring foo.el.
This behavior is not new. It works like that in Emacs 21.2 and Emacs 20.7.

Is the behavior a bug that should be fixed, or is it OK but should be documented? Or is it documented already?






reply via email to

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