emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] fix/eieio-persistent 1ea9947 2/2: Handle possible classtyp


From: Eric Abrahamsen
Subject: [Emacs-diffs] fix/eieio-persistent 1ea9947 2/2: Handle possible classtype values in eieio-persistent-read
Date: Wed, 20 Dec 2017 13:24:01 -0500 (EST)

branch: fix/eieio-persistent
commit 1ea9947ca318979bac0cc6d54263faf3fb09d587
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Handle possible classtype values in eieio-persistent-read
    
    * 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/eieio-base.el b/lisp/emacs-lisp/eieio-base.el
index a07e1f1..e166a28 100644
--- a/lisp/emacs-lisp/eieio-base.el
+++ b/lisp/emacs-lisp/eieio-base.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]