Commit 46c0aa17 authored by Glenn Morris's avatar Glenn Morris
Browse files

Lawrence Mitchell <wence at> (tiny change)

(Equality Predicates): Add defun for equal-including-properties.
parent ae845655
......@@ -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.
(equal "asdf" (propertize "asdf" '(asdf t)))
@result{} t
@end group
(equal-including-properties "asdf"
(propertize "asdf" '(asdf t)))
@result{} nil
@end group
@end example
@end defun
arch-tag: 9711a66e-4749-4265-9e8c-972d55b67096
@end ignore
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment