[plt-scheme] maintaining a cached list of modules

From: Jose A. Ortega Ruiz (jao at gnu.org)
Date: Fri May 8 06:50:27 EDT 2009

Matthew Flatt <mflatt at cs.utah.edu> writes:

> 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'.

Ah, that sounds like what i need (yes, i'm in control). Thanks, Matthew.

Cheers,
jao
-- 
Lower your voice and strengthen your argument. -Lebanese proverb


Posted on the users mailing list.