* lisp/emacs-lisp/eieio.el (defclass): Fix bug#51068
Accept (defclass <class> <superclasses> (.. <slotname> ..)) without having to wrap the slot name within parentheses.
This commit is contained in:
@@ -136,6 +136,7 @@ and reference them using the function `class-option'."
|
||||
(accessors ()))
|
||||
|
||||
;; Collect the accessors we need to define.
|
||||
(setq slots (mapcar (lambda (x) (if (consp x) x (list x))) slots))
|
||||
(pcase-dolist (`(,sname . ,soptions) slots)
|
||||
(let* ((acces (plist-get soptions :accessor))
|
||||
(initarg (plist-get soptions :initarg))
|
||||
|
||||
Reference in New Issue
Block a user