]> git.eshelyaron.com Git - emacs.git/commitdiff
(eieio-object-value-create): Adjust to new slots representation
author(tiny change) Pierre Lorenzon <devel@pollock-nageoire.net>
Tue, 5 May 2015 18:43:48 +0000 (14:43 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 5 May 2015 18:43:48 +0000 (14:43 -0400)
Fixes: debbugs:20467
* eieio-custom.el (eieio-object-value-create):
Fix missed adjustment to new representation of slots metadata.

lisp/emacs-lisp/eieio-custom.el

index 26fc452f7b1daf13b34155ca58ce2f78060bf9ec..f3ec1b6c9812d65862bd0a5cd2697041d6213d14 100644 (file)
@@ -223,6 +223,7 @@ Optional argument IGNORE is an extraneous parameter."
     ;; Loop over all the slots, creating child widgets.
     (dotimes (i (length slots))
       (let* ((slot (aref slots i))
+             (sname (eieio-slot-descriptor-name slot))
              (props (cl--slot-descriptor-props slot)))
         ;; Output this slot if it has a customize flag associated with it.
         (when (and (alist-get :custom props)
@@ -261,13 +262,13 @@ Optional argument IGNORE is an extraneous parameter."
                                              (or
                                               (eieio--class-slot-initarg
                                                (eieio--object-class obj)
-                                               (car slots))
-                                              (car slots)))))
+                                              sname)
+                                             sname))))
                                      (capitalize
                                       (if (string-match "^:" s)
                                           (substring s (match-end 0))
                                         s)))))
-                              :value (slot-value obj (car slots))
+                              :value (slot-value obj sname)
                               :doc  (or (alist-get :documentation props)
                                         "Slot not Documented.")
                               :eieio-custom-visibility 'visible