aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-02-11 00:49:15 +0000
committerGlenn Morris2008-02-11 00:49:15 +0000
commit46c0aa175c69803eb8eca4cba59e214f1bd0b150 (patch)
tree2a92bac2b4979001a8d753ebb41e1f5cc5c33b25
parentae845655a2336cf1f1c4bafd6da7b43238443904 (diff)
downloademacs-46c0aa175c69803eb8eca4cba59e214f1bd0b150.tar.gz
emacs-46c0aa175c69803eb8eca4cba59e214f1bd0b150.zip
Lawrence Mitchell <wence at gmx.li> (tiny change)
(Equality Predicates): Add defun for equal-including-properties.
-rw-r--r--doc/lispref/objects.texi17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index b4f7a022321..8181a66d487 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -2039,6 +2039,23 @@ returns @code{t} if and only if both the expressions below return
2039Because of this recursive method, circular lists may therefore cause 2039Because of this recursive method, circular lists may therefore cause
2040infinite recursion (leading to an error). 2040infinite recursion (leading to an error).
2041 2041
2042@defun equal-including-properties object1 object2
2043This function behaves like @code{equal} in all cases but also requires
2044that for two strings to be equal, they have the same text properties.
2045
2046@example
2047@group
2048(equal "asdf" (propertize "asdf" '(asdf t)))
2049 @result{} t
2050@end group
2051@group
2052(equal-including-properties "asdf"
2053 (propertize "asdf" '(asdf t)))
2054 @result{} nil
2055@end group
2056@end example
2057@end defun
2058
2042@ignore 2059@ignore
2043 arch-tag: 9711a66e-4749-4265-9e8c-972d55b67096 2060 arch-tag: 9711a66e-4749-4265-9e8c-972d55b67096
2044@end ignore 2061@end ignore