aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/elisp.texi
diff options
context:
space:
mode:
authorStefan Monnier2017-03-24 09:21:52 -0400
committerLars Brinkhoff2017-03-30 18:31:27 +0200
commit390612eb7ab8ccf0792fda7c48b7056c5cda9b06 (patch)
tree71766520a963d9c970cd72e8a2022302661a9f94 /doc/lispref/elisp.texi
parent43cb754a3109ac9afaeab1f08e35673b078a7a09 (diff)
downloademacs-scratch/record.tar.gz
emacs-scratch/record.zip
Backward compatibility with pre-existing struct instances.scratch/record
* lisp/emacs-lisp/cl-lib.el (cl--old-struct-type-of): New function. (cl-old-struct-compat-mode): New minor mode. * lisp/emacs-lisp/cl-macs.el (cl-defstruct): Pass `record' to cl-struct-define to signal use of record objects. * lisp/emacs-lisp/cl-preloaded.el (cl--struct-get-class, cl-struct-define): Enable legacy defstruct compatibility. * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-old-struct, old-struct): New tests. * doc/lispref/elisp.texi, doc/lispref/records.texi: Document `old-struct-compat'.
Diffstat (limited to 'doc/lispref/elisp.texi')
-rw-r--r--doc/lispref/elisp.texi1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lispref/elisp.texi b/doc/lispref/elisp.texi
index 0f7efb6f187..3a348aae98e 100644
--- a/doc/lispref/elisp.texi
+++ b/doc/lispref/elisp.texi
@@ -423,6 +423,7 @@ Sequences, Arrays, and Vectors
423Records 423Records
424 424
425* Record Functions:: Functions for records. 425* Record Functions:: Functions for records.
426* Backward Compatibility:: Compatibility for cl-defstruct.
426 427
427Hash Tables 428Hash Tables
428 429