# HG changeset patch # User Glenn Morris # Date 1202690968 0 # Node ID 3b51b5b38332248932ec284cde8fe4b6e9bc855f # Parent e5543d2b244f5af2f65877f538f6b05db84892b2 Lawrence Mitchell (tiny change) (Equality Predicates): Add defun for equal-including-properties. diff -r e5543d2b244f -r 3b51b5b38332 lispref/objects.texi --- a/lispref/objects.texi Mon Feb 11 00:47:11 2008 +0000 +++ b/lispref/objects.texi Mon Feb 11 00:49:28 2008 +0000 @@ -2032,6 +2032,23 @@ Because of this recursive method, circular lists may therefore cause infinite recursion (leading to an error). +@defun equal-including-properties object1 object2 +This function behaves like @code{equal} in all cases but also requires +that for two strings to be equal, they have the same text properties. + +@example +@group +(equal "asdf" (propertize "asdf" '(asdf t))) + @result{} t +@end group +@group +(equal-including-properties "asdf" + (propertize "asdf" '(asdf t))) + @result{} nil +@end group +@end example +@end defun + @ignore arch-tag: 9711a66e-4749-4265-9e8c-972d55b67096 @end ignore