unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* [guile/scwm] 2nd argument problem to scm_definedp()
@ 2002-09-16 18:49 P Pareit
  2002-09-16 19:42 ` Marius Vollmer
  2002-09-16 19:49 ` Rob Browning
  0 siblings, 2 replies; 15+ messages in thread
From: P Pareit @ 2002-09-16 18:49 UTC (permalink / raw)


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;


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-09-17 21:51 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-16 18:49 [guile/scwm] 2nd argument problem to scm_definedp() P Pareit
2002-09-16 19:42 ` Marius Vollmer
2002-09-16 19:55   ` Rob Browning
2002-09-16 20:24     ` Marius Vollmer
2002-09-17  9:25     ` rm
2002-09-17 21:51       ` Marius Vollmer
2002-09-17  9:25   ` P Pareit
2002-09-17 13:53     ` P Pareit
2002-09-17 21:38       ` Marius Vollmer
2002-09-16 19:49 ` Rob Browning
2002-09-16 19:53   ` Rob Browning
2002-09-16 20:22     ` Marius Vollmer
2002-09-16 20:25       ` Rob Browning
2002-09-17 16:00       ` Rob Browning
2002-09-17 21:50         ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).