changeset 91741:4e73f4d4b3d1

Lawrence Mitchell <wence at gmx.li> (tiny change) (Equality Predicates): Add defun for equal-including-properties.
author Glenn Morris <rgm@gnu.org>
date Mon, 11 Feb 2008 00:49:15 +0000
parents a746add2f99d
children 9c8fbf324b59
files doc/lispref/objects.texi
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/doc/lispref/objects.texi	Mon Feb 11 00:30:48 2008 +0000
+++ b/doc/lispref/objects.texi	Mon Feb 11 00:49:15 2008 +0000
@@ -2039,6 +2039,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