fix try-module-autoload, which did not detect failure to find the file
authorAndy Wingo <wingo@pobox.com>
Sun, 20 Jan 2013 18:33:42 +0000 (19:33 +0100)
committerAndy Wingo <wingo@pobox.com>
Mon, 21 Jan 2013 10:21:52 +0000 (11:21 +0100)
commitf6fd2c03a5f8b910e666b91b73e94da9eb6d03a2
tree48d8dc9f9edf0bc7c595ecda84d9d0543c163cbf
parent7f420e49e462ae8faa60d61358ce4e1fdbbb0f21
fix try-module-autoload, which did not detect failure to find the file

* libguile/load.c (scm_primitive_load_path): If the second argument is a
  procedure, call it like a thunk.

* doc/ref/api-evaluation.texi (Load Paths): Update docs.

* module/ice-9/boot-9.scm (resolve-interface): Use `unless'.
  (try-module-autoload): Use the new primitive-load-path to detect
  failure to find an appropriate file.  Fixes a bug reported by Diogo
  F. S. Ramos.  Thanks to Noah Lavine for tracking it down.
doc/ref/api-evaluation.texi
libguile/load.c
module/ice-9/boot-9.scm