aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/alloc-tests.el
diff options
context:
space:
mode:
authorPaul Eggert2017-04-07 18:54:40 -0700
committerPaul Eggert2017-04-07 18:54:40 -0700
commita2b3fea957440b8358d3632a4a05e41dee964b5d (patch)
treea6ef4cf0ba807dfad9ae91b4bfde1935dc999a5f /test/src/alloc-tests.el
parenta614cd416c5dd71702428a008992589395a722fc (diff)
downloademacs-a2b3fea957440b8358d3632a4a05e41dee964b5d.tar.gz
emacs-a2b3fea957440b8358d3632a4a05e41dee964b5d.zip
Deprecate copy-record in favor of copy-sequence
Since copy-sequence seems to be needed anyway for records, have it work on records, and remove copy-record as being superfluous. * doc/lispref/records.texi (Records, Record Functions): * lisp/emacs-lisp/cl-macs.el (cl-defstruct): * lisp/emacs-lisp/eieio.el (make-instance, clone): * test/src/alloc-tests.el (record-3): Use copy-sequence, not copy-record, to copy records. * doc/lispref/sequences.texi (Sequence Functions) (Array Functions): Document that aref and copy-sequence work on records. * etc/NEWS: Omit copy-record. * src/alloc.c (Fcopy_record): Remove. * src/data.c (Faref): Document that arg can be a record. * src/fns.c (Fcopy_sequence): Copy records, too.
Diffstat (limited to 'test/src/alloc-tests.el')
-rw-r--r--test/src/alloc-tests.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/alloc-tests.el b/test/src/alloc-tests.el
index 8b4ef8ce7d2..1cf1fc3be5c 100644
--- a/test/src/alloc-tests.el
+++ b/test/src/alloc-tests.el
@@ -47,7 +47,7 @@
47 47
48(ert-deftest record-3 () 48(ert-deftest record-3 ()
49 (let* ((x (record 'foo 1 2 3)) 49 (let* ((x (record 'foo 1 2 3))
50 (y (copy-record x))) 50 (y (copy-sequence x)))
51 (should-not (eq x y)) 51 (should-not (eq x y))
52 (dotimes (i 4) 52 (dotimes (i 4)
53 (should (eql (aref x i) (aref y i)))))) 53 (should (eql (aref x i) (aref y i))))))