Files
emacs/test/lisp
Stefan Monnier de727b5886 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`.
2021-12-04 13:47:35 -05:00
..
2021-12-04 10:36:07 -08:00
2021-10-29 15:30:21 +02:00
2021-10-23 08:13:43 +02:00
2021-11-25 10:14:01 -08:00
2021-11-24 16:54:59 +01:00
2021-09-26 20:45:07 +02:00
2021-12-03 21:52:49 +02:00
2021-08-09 14:14:37 +02:00
2021-10-16 09:18:37 -07:00
2021-05-16 15:50:41 +02:00