unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Compiled load path issues
@ 2009-10-18 15:36 Ludovic Courtès
  2009-10-19 19:16 ` Andy Wingo
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2009-10-18 15:36 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

Hello!

Once upon a time, if ‘chbouib.go’ is in the vicinity of ‘chbouib.scm’,
then ‘(use-modules (chbouib))’ would load ‘chbouib.go’.  This is no
longer the case, but can be remedied with something like this:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 697 bytes --]

diff --git a/libguile/load.c b/libguile/load.c
index 50af256..194d1e5 100644
--- a/libguile/load.c
+++ b/libguile/load.c
@@ -726,7 +726,9 @@ SCM_DEFINE (scm_primitive_load_path, "primitive-load-path", 0, 0, 1,
     exception_on_not_found = SCM_BOOL_T;
 
   full_filename = scm_sys_search_load_path (filename);
-  compiled_filename = scm_search_path (*scm_loc_load_compiled_path,
+  compiled_filename = scm_search_path (scm_append
+				        (scm_list_2 (*scm_loc_load_compiled_path,
+						     *scm_loc_load_path)),
                                        filename,
                                        *scm_loc_load_compiled_extensions,
                                        SCM_BOOL_T);

[-- Attachment #3: Type: text/plain, Size: 445 bytes --]


Andy: can you comment?  What was the idea behind ‘%load-compiled-path’?

Besides, ‘scm_search_path ()’ was changed incompatibly compared to 1.8
in 22f4ee48822db5e30df3abf9a11b6066f2bab9d3.  I’m wary about such
incompatibilities and would like it if we could (1) list them, and
(2) avoid them unless we really really can’t think of any other way.  In
this particular case, do you have an idea on how to avoid it?

Thanks,
Ludo’.

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

end of thread, other threads:[~2009-10-21 18:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-18 15:36 Compiled load path issues Ludovic Courtès
2009-10-19 19:16 ` Andy Wingo
2009-10-20  8:27   ` Ludovic Courtès
2009-10-20 18:59     ` Andy Wingo
2009-10-21 16:22       ` Ludovic Courtès
2009-10-21 18:15         ` Andy Wingo
2009-10-21 16:45       ` Parallel installability, API stability Ludovic Courtès
2009-10-21 18:17         ` Andy Wingo

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).