emacs/test/lisp/emacs-lisp
Stefan Monnier 2c68192c6b Backward compatibility with pre-existing struct instances.
* 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'.
2017-04-04 08:23:46 +02:00
..
eieio-tests
package-resources Don't use IP 0.0.0.0 for package test server (Bug#22582) 2017-02-25 12:56:09 -05:00
testcover-resources Add tests for lisp/emacs-lisp/testcover.el 2017-02-04 11:43:50 +02:00
benchmark-tests.el Use lexical binding in benchmark.el 2017-03-03 18:26:30 +09:00
bytecomp-tests.el bytecomp-tests.el: Store all test forms in one constant. 2017-02-15 21:12:44 +05:30
checkdoc-tests.el
cl-extra-tests.el Prevent for consing in cl-mapc and cl-mapl 2017-02-27 16:32:10 +09:00
cl-generic-tests.el
cl-lib-tests.el Backward compatibility with pre-existing struct instances. 2017-04-04 08:23:46 +02:00
cl-print-tests.el Add record objects with user-defined types. 2017-04-04 08:23:46 +02:00
cl-seq-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
ert-tests.el
ert-x-tests.el
generator-tests.el
let-alist-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
lisp-mode-tests.el * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-subsexp): Test for Bug#26187 2017-03-21 20:45:32 -04:00
lisp-tests.el
map-tests.el
nadvice-tests.el
package-tests.el Don't use IP 0.0.0.0 for package test server (Bug#22582) 2017-02-25 12:56:09 -05:00
pcase-tests.el
pp-tests.el Switch pp.el to lexical binding 2017-03-02 23:03:20 -05:00
regexp-opt-tests.el
ring-tests.el
rx-tests.el
seq-tests.el
subr-x-tests.el
tabulated-list-test.el
testcover-tests.el Add tests for lisp/emacs-lisp/testcover.el 2017-02-04 11:43:50 +02:00
thunk-tests.el
timer-tests.el