Accessing slot ‘border’ via obsolete initarg name ‘:border’ [2 times]
Accessing slot ‘margin’ via obsolete initarg name ‘:margin’ [2 times]
Accessing slot ‘padding’ via obsolete initarg name ‘:padding’ [2 times]
Accessing slot ‘justify’ via obsolete initarg name ‘:justify’
Accessing slot ‘height’ via obsolete initarg name ‘:height’
(defun eieio--slot-name-index (class slot)
"In CLASS find the index of the named SLOT.
The slot is a symbol which is installed in CLASS by the `defclass' call.
If SLOT is the value created with :initarg instead,
reverse-lookup that name, and recurse with the associated slot value."
;; Removed checks to outside this call
(let* ((fsi (gethash slot (cl--class-index-table class))))
(if (integerp fsi)
fsi
(when eieio-backward-compatibility
(let ((fn (eieio--initarg-to-attribute class slot)))
(when fn
(when (eq eieio-backward-compatibility 'warn)
(message "Accessing slot `%S' via obsolete initarg name `%S'"
fn slot))
;; Accessing a slot via its :initarg is accepted by EIEIO
;; (but not CLOS) but is a bad idea (for one: it's slower).
(eieio--slot-name-index class fn)))))))