]> git.eshelyaron.com Git - emacs.git/commit
EIEIO: Prevent excessive evaluation of :initform
authorakater <nuclearspace@gmail.com>
Mon, 12 Jul 2021 14:15:54 +0000 (14:15 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 16 Jul 2021 19:40:08 +0000 (15:40 -0400)
commit109c27341e35fae778b95e0eb5d4d72927bf4ea8
tree02033cc7f712d8f10935aa108455d7b4b6188e77
parent24a8cc5e707affad345e085b6fe8c778559533f6
EIEIO: Prevent excessive evaluation of :initform

* lisp/emacs-lisp/eieio.el (initialize-instance):
Do not evaluate initform of a slot when initarg for the slot is provided,
according to the following secitons of CLHS:
- Object Creation and Initialization
- Initialization Arguments
- Defaulting of Initialization Arguments
- Rules for Initialization Arguments

* test/lisp/emacs-lisp/eieio-etests/eieio-tests.el:
Add corresponding tests
Fix a typo
lisp/emacs-lisp/eieio.el
test/lisp/emacs-lisp/eieio-tests/eieio-tests.el