• Eric Abrahamsen's avatar
    Fix slot typecheck in eieio-persistent · c59ddb21
    Eric Abrahamsen authored
    * lisp/emacs-lisp/eieio-base.el (eieio-persistent-slot-type-is-class-p):
      An `or' form can specify multiple potential classes (or null) as
      valid types for a slot, but previously only the final element of the
      `or' was actually checked. Now returns all valid classes in the `or'
      (eieio-persistent-validate/fix-slot-value): Check if proposed value
      matches any of the valid classes.
    * test/lisp/emacs-lisp/eieio-tests/eieio-test-persist.el
      (eieio-test-multiple-class-slot): Test this behavior.
eieio-test-persist.el 7.9 KB