]> git.eshelyaron.com Git - emacs.git/commit
Improved copy-tree documentation and test (bug#63509)
authorMattias Engdegård <mattiase@acm.org>
Fri, 19 May 2023 10:32:28 +0000 (12:32 +0200)
committerMattias Engdegård <mattiase@acm.org>
Fri, 19 May 2023 13:50:42 +0000 (15:50 +0200)
commitbd6bba4780dcfdec97ab5e6469f7777c4b2a1b0d
tree68165f5e80829f975c9e740fd2ca1e06fcc40d2a
parent156973639cc57dec47705f76f63c2ef3dc00a61d
Improved copy-tree documentation and test (bug#63509)

* etc/NEWS: Move entry since it's an incompatible change.
* lisp/emacs-lisp/shortdoc.el (vector): Make the example relevant.
* lisp/subr.el (copy-tree): Rename second argument,
since 'vector-like' is a term with a specific meaning in Emacs
but not the one intended here.
* doc/lispref/lists.texi (Building Lists): Rename second argument,
and make it clear that the input must be acyclic.
* doc/lispref/records.texi (Record Functions):
Be more precise: `copy-sequence` is used to copy records,
`copy-tree` copies trees made of records etc.
* test/lisp/subr-tests.el (subr--copy-tree): Extend and strengthen the
test considerably, using the print-circle trick to detect structure
sharing precisely.
doc/lispref/lists.texi
doc/lispref/records.texi
etc/NEWS
lisp/emacs-lisp/shortdoc.el
lisp/subr.el
test/lisp/subr-tests.el