[plt-scheme] maintaining a cached list of modules

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri May 8 06:18:04 EDT 2009

At Fri, 08 May 2009 02:24:33 +0200, "Jose A. Ortega Ruiz" wrote:
> I've just written a bit of Scheme code that traverses the collection
> directories and creates a list of available modules (so that i can get
> module path completion in emacs). Since it's a big list, i cache it; but
> now imagine that i require, say, a new PLaneT package in the same
> mzscheme session: my cache becomes stale. Is there any way of
> 'intercepting' calls to REQUIRE, or some other technique allowing me to
> keep the module list fresh?

If you're in control of the way the mzscheme session is started, you
could set `current-module-name-resolver'.



Posted on the users mailing list.