Re: Problem with modules in Guile 2.0

2012-03-12 Thread Gubinelli Massimiliano
Hi Mark, I've update the svn repository and now the build process should recognize Guile 2.0. To build TeXmacs you will need the Qt framework, freetype and of course Guile. A standard ./configure --enable-qt make should suffice. You car run TeXmacs without installing by telling it where to f

Re: Problem with modules in Guile 2.0

2012-03-11 Thread Mark H Weaver
Gubinelli Massimiliano writes: >> Why not convert your scripts to use the standard Guile module syntax? > > TeXmacs is currently composed of 250 scheme files for \sim 6 lines > of scheme. Fair enough. I see no obstacle to adapting the TeXmacs module system to work with Guile 2. It's just a

Re: Problem with modules in Guile 2.0

2012-03-09 Thread Gubinelli Massimiliano
Hi Mark, On Mar 9, 2012, at 5:29 PM, Mark H Weaver wrote: > Gubinelli Massimiliano writes: > >> Hi Mark, >> thanks again. I start to understand better the Guile 2 compile >> system. I decided to dig into boot-9.scm to have a more precise idea >> of the ecosystem around my scripts. Unfortunately

Re: Problem with modules in Guile 2.0

2012-03-09 Thread Mark H Weaver
Gubinelli Massimiliano writes: > Hi Mark, > thanks again. I start to understand better the Guile 2 compile > system. I decided to dig into boot-9.scm to have a more precise idea > of the ecosystem around my scripts. Unfortunately it seems that the > basic TeXmacs scripting infrastructure need a

Re: Problem with modules in Guile 2.0

2012-03-08 Thread Gubinelli Massimiliano
Hi Mark, thanks again. I start to understand better the Guile 2 compile system. I decided to dig into boot-9.scm to have a more precise idea of the ecosystem around my scripts. Unfortunately it seems that the basic TeXmacs scripting infrastructure need a major change to be run into Guile 2.0 an

Re: Problem with modules in Guile 2.0

2012-03-07 Thread Mark H Weaver
Gubinelli Massimiliano writes: > Thanks for the prompt reply to both of you. However the proposed > solution do not work in my case. I think it _did_ solve your original problem, but now you have moved on to other unrelated problems. > After implementing the > begin-for-syntax alternative I now

Re: Problem with modules in Guile 2.0

2012-03-07 Thread Gubinelli Massimiliano
Thanks for the prompt reply to both of you. However the proposed solution do not work in my case. After implementing the begin-for-syntax alternative I now get scheme@(guile-user)> (load "main.scm") ;;; compiling /Users/mgubi/t/build-64-guile-2.0/test-modules/main.scm ;;; note: source file /Use

Re: Problem with modules in Guile 2.0

2012-03-07 Thread Andy Wingo
Hi! Mark gave great answers; I just wanted to give one more option: On Tue 06 Mar 2012 22:48, Gubinelli Massimiliano writes: > (load "test-modules.scm") Add a definition first: (cond-expand (guile-2 (define-syntax-rule (begin-for-syntax form ...) (eval-when (load compile eval)

Re: Problem with modules in Guile 2.0

2012-03-07 Thread Mark H Weaver
Gubinelli Massimiliano writes: > I stumbled on a strange behaviour of Guile 2.0, I have the following three > files: main.scm, test-module.scm and sub/mymodule.scm which respectively > contain > > main.scm > > (load "test-modules.scm") > > (inherit-modules (sub mymodule)) > > (display (

Problem with modules in Guile 2.0

2012-03-06 Thread Gubinelli Massimiliano
Hi all, I stumbled on a strange behaviour of Guile 2.0, I have the following three files: main.scm, test-module.scm and sub/mymodule.scm which respectively contain main.scm (load "test-modules.scm") (inherit-modules (sub mymodule)) (display (pippo 10 20)) (display "\n") sub/mymo