From e9c5a1719bae94961ae40151f476a3e221e94b18 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Thu, 10 Sep 2020 21:57:21 +0200 Subject: Move copy-tree to (ice-9 copy-tree); deprecate main binding * doc/ref/api-data.texi (List Constructors): * doc/ref/api-utility.texi (Copying): Update docs to mention module. * libguile.h: Remove trees.h inclusion. * libguile/Makefile.am (libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES): (DOT_X_FILES, DOT_DOC_FILES, modinclude_HEADERS): Remove trees.c, trees.h, and related files. * libguile/init.c (scm_i_init_guile): Remove trees.h and the scm_init_trees call. * libguile/trees.c: * libguile/trees.h: Remove. * module/Makefile.am (SOURCES): Add ice-9/copy-tree.scm. * module/ice-9/copy-tree.scm: New file. * module/ice-9/deprecated.scm (copy-tree*): Export as copy-tree, proxying to (ice-9 copy-tree). * module/system/repl/common.scm: * module/web/client.scm: * test-suite/tests/elisp.test: * test-suite/tests/srfi-1.test: * module/oop/goops/save.scm: Use (ice-9 copy-tree). * test-suite/Makefile.am (SCM_TESTS): Add copy-tree.test. * test-suite/tests/copy-tree.test: New file; test pulled from eval.test. * libguile/deprecated.h: * libguile/deprecated.c (scm_copy_tree): Deprecate. --- doc/ref/api-data.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/ref/api-data.texi') diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi index ed14b2298..2ad13f5a5 100644 --- a/doc/ref/api-data.texi +++ b/doc/ref/api-data.texi @@ -5924,7 +5924,8 @@ that modifying the elements of the new list also modifies the elements of the old list. On the other hand, applying procedures like @code{set-cdr!} or @code{delv!} to the new list will not alter the old list. If you also need to copy the list elements (making a deep copy), -use the procedure @code{copy-tree} (@pxref{Copying}). +use the procedure @code{copy-tree} from @code{(ice-9 copy-tree)} +(@pxref{Copying}). @node List Selection @subsubsection List Selection -- cgit v1.2.3