projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ec935d
)
Handle possible classtype values in eieio-persistent-read
author
Eric Abrahamsen
<eric@ericabrahamsen.net>
Tue, 19 Dec 2017 22:56:13 +0000
(14:56 -0800)
committer
Eric Abrahamsen
<eric@ericabrahamsen.net>
Thu, 22 Mar 2018 02:46:08 +0000
(10:46 +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
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/eieio-base.el
b/lisp/emacs-lisp/eieio-base.el
index f0fed17b7da02c30f846b8d9ae26f7bde625c672..af240794e38ca1909cf0be9c451baa963ed6d586 100644
(file)
--- 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