guile-user
[Top][All Lists]
Advanced

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

[guile/scwm] 2nd argument problem to scm_definedp()


From: P Pareit
Subject: [guile/scwm] 2nd argument problem to scm_definedp()
Date: Mon, 16 Sep 2002 20:49:54 +0200
User-agent: KMail/1.4.2

Hey,

Scwm is running but modules do not get loaded. I get an error like:
Error loading module: no code for module.
It looks like %load-path is messed up, %load-path gives me:
("/usr/local/scwm/modules/" %load-path . 0)
The c-code that modifies %load-path looks like creating %load-path in stead of 
adding strings to %load-path. I would first like to know if %load-path is 
already defined, in scheme code this would be: (and (defined? %load-path) 
(display "%load-path is defined") (newline)), it seems I cannot get the 
argument for _current_lexical_environment_ right:
if (SCM_NFALSEP(scm_definedp(load_path_symbol, 
scm_interaction_environment()))) { /* print */ }
or
if (SCM_NFALSEP(scm_definedp(load_path_symbol, scm_current_module()))) { /* 
print */ }
give me both:
ERROR: In procedure defined?:
ERROR: Wrong type argument in position 2: #<directory (guile-user) 8084560>
So what argument should I use?

pieter;




reply via email to

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