]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle possible classtype values in eieio-persistent-read
authorEric Abrahamsen <eric@ericabrahamsen.net>
Tue, 19 Dec 2017 22:56:13 +0000 (14:56 -0800)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Wed, 20 Dec 2017 18:20:58 +0000 (10:20 -0800)
* lisp/emacs-lisp/eieio-base.el (eieio-persistent-validate/fix-slot-value):
  The function `eieio-persistent-slot-type-is-class-p' could return
  either a single class, or a list of classes.

lisp/emacs-lisp/eieio-base.el

index a07e1f13acff985998bd3992a1b59957ad3f89ab..e166a2859a41d6edfa6d1af1e7e9f8c4bbab76f0 100644 (file)
@@ -349,7 +349,7 @@ Second, any text properties will be stripped from strings."
                        (seq-some
                         (lambda (elt)
                           (child-of-class-p (car proposed-value) elt))
-                        classtype))
+                        (if (listp classtype) classtype (list classtype))))
                  (eieio-persistent-convert-list-to-object
                   proposed-value))
                 (t