aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/objects.texi
diff options
context:
space:
mode:
authorMattias EngdegÄrd2024-08-31 18:39:46 +0200
committerMattias EngdegÄrd2024-08-31 18:39:46 +0200
commit2ca7d5649c69efbc65a4c7c074c52d8f4f0d4a21 (patch)
tree3f32fd7db65332f811b9310b5831c7396e4029b2 /doc/lispref/objects.texi
parent5fd75133cfe389004f9fca8f11e093e531c45fe2 (diff)
downloademacs-2ca7d5649c69efbc65a4c7c074c52d8f4f0d4a21.tar.gz
emacs-2ca7d5649c69efbc65a4c7c074c52d8f4f0d4a21.zip
; More accurate text about how `equal` compares various objects
* doc/lispref/objects.texi (Equality Predicates): Attempt at improving the text further (bug#72888).
Diffstat (limited to 'doc/lispref/objects.texi')
-rw-r--r--doc/lispref/objects.texi10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index 399a1d169c2..34ea7cf4996 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -2413,10 +2413,12 @@ the converse is not always true.
2413@end group 2413@end group
2414@end example 2414@end example
2415 2415
2416The @code{equal} function recursively compares the contents of objects 2416The @code{equal} function compares strings and bool-vectors by value.
2417if they are integers, strings, markers, lists, cons cells, vectors, 2417Numbers are compared by type and numeric value, using @code{eql}.
2418bool-vectors, byte-code function objects, char-tables, records, or font 2418Lists, cons cells, vectors, records, markers, char-tables, font objects,
2419objects. 2419and function objects (closures)@footnote{However, equality of distinct
2420function objects cannot be guaranteed in general.} are compared
2421recursively by using @code{equal} on their constituent parts.
2420 2422
2421Comparison of strings is case-sensitive, but does not take account of 2423Comparison of strings is case-sensitive, but does not take account of
2422text properties---it compares only the characters in the strings. 2424text properties---it compares only the characters in the strings.