Re: current module fluid

2007-07-11 Thread Ludovic Courtès
Hi, Jon Wilson <[EMAIL PROTECTED]> writes: > Ludovic Courtès wrote: >> And no, it's not documented (patch welcome! ;-)). >> > Here we are: (attached) Thanks! I applied it. Ludovic. ___ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.

Re: current module fluid

2007-07-10 Thread Jon Wilson
Hi Ludovic, Thanks for the suggestion. I likely never would have found save-module-excursion on my own. Ludovic Courtès wrote: And no, it's not documented (patch welcome! ;-)). Here we are: (attached) Regards, Jon Index: api-modules.texi =

Re: current module fluid

2007-07-10 Thread Ludovic Courtès
Hi Jon, Jon Wilson <[EMAIL PROTECTED]> 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

Re: current module fluid

2007-07-09 Thread Jon Wilson
Hi Ludovic, Thanks for the swift reply. However, I meant to ask whether or not the fluid "the_module" is accessible from scheme as a fluid. We can easily see: guile> (fluid? (current-module)) #f So the value returned by (current-module) is not a fluid, and thus my shortened version of load-

Re: current module fluid

2007-07-09 Thread Ludovic Courtès
Hi, Jon Wilson <[EMAIL PROTECTED]> writes: > I was poking around the source (guile-core/libguile/modules.c), and > noticed that the current toplevel module is stored in a fluid named > (in C, anyway) "the_module". Is this fluid accessible from scheme? Yes, using `(current-module)'. Thanks, Ludo