diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-12-04 13:47:19 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-12-04 13:47:35 -0500 |
commit | de727b5886fb4a81df2dc17d9d094e915c1e9fb4 (patch) | |
tree | c7e1f3ae109eb8cc6c11abf9391b25bf8d15b8cf /test/lisp/emacs-lisp/comp-cstr-tests.el | |
parent | 63be97fb050545cc33ae5d857188ad45fbe27715 (diff) | |
download | emacs-de727b5886fb4a81df2dc17d9d094e915c1e9fb4.tar.gz emacs-de727b5886fb4a81df2dc17d9d094e915c1e9fb4.tar.bz2 emacs-de727b5886fb4a81df2dc17d9d094e915c1e9fb4.zip |
eieio-core.el: Allow assignment to cl-structs through `slot-value`
* lisp/emacs-lisp/eieio-core.el (eieio--validate-slot-value):
Obey the `:read-only` property of the slot.
(eieio-oset): Allow use on cl-structs as well.
(eieio-read-only): New error.
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el (eieio-test--struct):
Make the last field read-only.
(eieio-test-defstruct-slot-value): Test that cl-struct slots can be
assigned via `slot-value`.
Diffstat (limited to 'test/lisp/emacs-lisp/comp-cstr-tests.el')
0 files changed, 0 insertions, 0 deletions