]> git.eshelyaron.com Git - emacs.git/commitdiff
Lawrence Mitchell <wence at gmx.li> (tiny change)
authorGlenn Morris <rgm@gnu.org>
Mon, 11 Feb 2008 00:49:15 +0000 (00:49 +0000)
committerGlenn Morris <rgm@gnu.org>
Mon, 11 Feb 2008 00:49:15 +0000 (00:49 +0000)
(Equality Predicates): Add defun for equal-including-properties.

doc/lispref/objects.texi

index b4f7a0223219afb7fc8f8160f97ce42dfbc06608..8181a66d487c88cb64cc2d7442e659d14493c333 100644 (file)
@@ -2039,6 +2039,23 @@ returns @code{t} if and only if both the expressions below return
 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