unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* %load-hook doc rot
@ 2005-01-14 23:53 Kevin Ryde
  0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2005-01-14 23:53 UTC (permalink / raw)


The docs for %load-hook show and suggest you should use "define" to
make a hook,

	(define %load-hook (lambda (file)
	                     (display "Loading ")
	                     (display file)
	                     (write-line "....")))
	(load-from-path "/dev/null")

but that produces no output for me.  If I'm not mistaken it should be
set!, ever since user stuff went into the separate guile-user module
perhaps.



 -- Variable: %load-hook
     A procedure to be called `(%load-hook FILENAME)' whenever a file
     is loaded, or `#f' for no such call.  `%load-hook' is used by all
     of the above loading functions (`load', `load-path',
     `primitive-load' and `primitive-load-path').

     For example an application can set this to show what's loaded,

          (set! %load-hook (lambda (filename)
                             (format #t "Loading ~a ...\n" filename)))
          (load-from-path "foo.scm")
          -| Loading /usr/local/share/guile/site/foo.scm ...


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-14 23:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-14 23:53 %load-hook doc rot Kevin Ryde

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