Benson and I were trying to use subsetp and getting wrong results.
subsetp is supposed to take two lists
and check all the elements of the first list are contained in the second
list.
(subsetp (list ?a) (list ?a ?b ?c ?d))
returns t
(subsetp (list ?a ?b) (list ?a ?b ?c ?d))
returns t
(subsetp (list ?a) nil)
returns (?a)
But should return nil.
(subsetp nil (list ?a ?b ?c ?d))
returns t
(subsetp nil nil )
returns nil
but should return t
Attached is a patch that fixes both wrong cases.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta