diff options
author | Joseph Turner <joseph@breatheoutbreathe.in> | 2023-05-14 21:02:15 -0700 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-05-19 09:00:27 +0300 |
commit | 3a1285caba9cd25abaddbc541e3217e2559d79ab (patch) | |
tree | 5cfae8c27c61e780926d22fe1bb025ce9268ddf5 /lisp/emacs-lisp | |
parent | 8c9377b6c4e907e65712fbf0ba0cf90f51da5ef6 (diff) | |
download | emacs-3a1285caba9cd25abaddbc541e3217e2559d79ab.tar.gz emacs-3a1285caba9cd25abaddbc541e3217e2559d79ab.tar.bz2 emacs-3a1285caba9cd25abaddbc541e3217e2559d79ab.zip |
Make 'copy-tree' work with records
* doc/lispref/lists.texi (Building Cons Cells and Lists): Document
new behavior of 'copy-tree'.
* doc/lispref/records.texi (Record Functions): Cross-reference to
lists.texi.
* etc/NEWS: Mention change. (Bug#63509)
* lisp/emacs-lisp/shortdoc.el: Add 'copy-tree' example to vector
group.
* lisp/subr.el (copy-tree): Recurse into records as well as
vectors when optional second argument is non-nil. Rename second
argument from VECP to VECTOR-LIKE-P.
* test/lisp/subr-tests.el: Test new behavior.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/shortdoc.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index 9a6f5dd12ce..6580e0e4e0c 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el @@ -833,6 +833,8 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'), (seq-subseq :eval (seq-subseq [1 2 3 4 5] 1 3) :eval (seq-subseq [1 2 3 4 5] 1)) + (copy-tree + :eval (copy-tree [1 2 3 4])) "Mapping Over Vectors" (mapcar :eval (mapcar #'identity [1 2 3])) |