]> git.eshelyaron.com Git - emacs.git/commit
Make EIEIO ':accessor' behave like ':reader' when reading (bug#66938)
authorBrandon <brandon.irizarry@gmail.com>
Sat, 4 Nov 2023 21:11:32 +0000 (17:11 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 26 Nov 2023 13:51:27 +0000 (08:51 -0500)
commit6c47931a1ad4de4af3f147b9604169c2441100fe
tree05ad3a1c388514656a9aa8cc5adb12a3fd55ccae
parent6a01a1a856f859e1cdb593e2cc0833b844b077be
Make EIEIO ':accessor' behave like ':reader' when reading (bug#66938)

Clones of instances of subclasses of 'eieio-instance-inheritor' didn't
delegate to their ':parent-instance' field when reading object fields
using ':accessor'.

* lisp/emacs-lisp/eieio.el (defclass): Remove 'slot-boundp' check for
:accessor's getter
* test/lisp/emacs-lisp/eieio-tests/eieio-tests.el
(eieio-test-use-accessor-function-with-cloned-object): New test.

Copyright-paperwork-exempt: yes
lisp/emacs-lisp/eieio.el
test/lisp/emacs-lisp/eieio-tests/eieio-tests.el