aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorPaul Eggert2017-04-07 18:54:40 -0700
committerPaul Eggert2017-04-07 18:54:40 -0700
commita2b3fea957440b8358d3632a4a05e41dee964b5d (patch)
treea6ef4cf0ba807dfad9ae91b4bfde1935dc999a5f /src/data.c
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 'src/data.c')
-rw-r--r--src/data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c
index 3ffca54658d..903e809d235 100644
--- a/src/data.c
+++ b/src/data.c
@@ -2266,8 +2266,8 @@ function chain of symbols. */)
2266/* Extract and set vector and string elements. */ 2266/* Extract and set vector and string elements. */
2267 2267
2268DEFUN ("aref", Faref, Saref, 2, 2, 0, 2268DEFUN ("aref", Faref, Saref, 2, 2, 0,
2269 doc: /* Return the element of ARRAY at index IDX. 2269 doc: /* Return the element of ARG at index IDX.
2270ARRAY may be a vector, a string, a char-table, a bool-vector, 2270ARG may be a vector, a string, a char-table, a bool-vector, a record,
2271or a byte-code object. IDX starts at 0. */) 2271or a byte-code object. IDX starts at 0. */)
2272 (register Lisp_Object array, Lisp_Object idx) 2272 (register Lisp_Object array, Lisp_Object idx)
2273{ 2273{