[Top][All Lists]

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

Re: current module fluid

From: Ludovic Courtès
Subject: Re: current module fluid
Date: Tue, 10 Jul 2007 19:18:00 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi Jon,

Jon Wilson <address@hidden> writes:

> Thanks for the swift reply.  However, I meant to ask whether or not
> the fluid "the_module" is accessible from scheme as a fluid.

Ah sorry.  Then the answer is "no".

Then indeed, you have to go through `dynamic-wind'.  Arguably, this is
not very convenient, but it's been this way for very long.

OTOH, you have `save-module-excursion' which takes a thunk and does what
you want.  You could write:

  (define (load-with-env file env)
      (lambda ()
        (set-current-module env)
        (load file))))

And no, it's not documented (patch welcome! ;-)).


reply via email to

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