From 723e483e7d88897f1ad654028e86a87dd040b886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 22 May 2020 22:06:34 +0200 Subject: [PATCH] doc: #:autoload does not pull in all the module bindings. Reported by Jan Nieuwenhuizen . This is a followup to cb14fd214365e50b6b1655616ae74d0228933bbd. * doc/ref/api-modules.texi (Creating Guile Modules): Remove bit that says all the bindings of an autoloaded module become available. --- doc/ref/api-modules.texi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/ref/api-modules.texi b/doc/ref/api-modules.texi index 23343785d..4d1e95b50 100644 --- a/doc/ref/api-modules.texi +++ b/doc/ref/api-modules.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Guile Reference Manual. -@c Copyright (C) 1996, 1997, 2000-2004, 2007-2014, 2019 +@c Copyright (C) 1996, 1997, 2000-2004, 2007-2014, 2019, 2020 @c Free Software Foundation, Inc. @c See the file guile.texi for copying conditions. @@ -295,8 +295,10 @@ example, (set! foo (delete-duplicates ...))) @end example -When a module is autoloaded, all its bindings become available. -@var{symbol-list} is just those that will first trigger the load. +When a module is autoloaded, only the bindings in @var{symbol-list} +become available@footnote{In Guile 2.2 and earlier, @emph{all} the +module bindings would become available; @var{symbol-list} was just the +list of bindings that will first trigger the load.}. An autoload is a good way to put off loading a big module until it's really needed, for instance for faster startup or if it will only be