aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/objects.texi
diff options
context:
space:
mode:
authorEli Zaretskii2024-08-30 13:57:29 +0300
committerEli Zaretskii2024-08-30 13:57:29 +0300
commitdfcfaa0ef58bab0df243ebf816293a124f4c91c9 (patch)
tree5dd23183acf51e994eacf07dd60606fe6acb86a7 /doc/lispref/objects.texi
parent5fbbc3d0cd277ec71de55c9fd9036afadc875020 (diff)
downloademacs-dfcfaa0ef58bab0df243ebf816293a124f4c91c9.tar.gz
emacs-dfcfaa0ef58bab0df243ebf816293a124f4c91c9.zip
More accurate documentation of 'equal' in ELisp Reference
* doc/lispref/objects.texi (Equality Predicates): Add lists and conses. (Bug#72888)
Diffstat (limited to 'doc/lispref/objects.texi')
-rw-r--r--doc/lispref/objects.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi
index ec6ab8204d6..399a1d169c2 100644
--- a/doc/lispref/objects.texi
+++ b/doc/lispref/objects.texi
@@ -2413,6 +2413,11 @@ 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
2417if they are integers, strings, markers, lists, cons cells, vectors,
2418bool-vectors, byte-code function objects, char-tables, records, or font
2419objects.
2420
2416Comparison of strings is case-sensitive, but does not take account of 2421Comparison of strings is case-sensitive, but does not take account of
2417text properties---it compares only the characters in the strings. 2422text properties---it compares only the characters in the strings.
2418@xref{Text Properties}. Use @code{equal-including-properties} to also 2423@xref{Text Properties}. Use @code{equal-including-properties} to also
@@ -2428,10 +2433,6 @@ same sequence of character codes and all these codes are in the range
2428@end group 2433@end group
2429@end example 2434@end example
2430 2435
2431The @code{equal} function recursively compares the contents of objects
2432if they are integers, strings, markers, vectors, bool-vectors,
2433byte-code function objects, char-tables, records, or font objects.
2434
2435If @var{object1} or @var{object2} contains symbols with position, 2436If @var{object1} or @var{object2} contains symbols with position,
2436@code{equal} treats them as if they were their bare symbols when 2437@code{equal} treats them as if they were their bare symbols when
2437@code{symbols-with-pos-enabled} is non-@code{nil}. Otherwise 2438@code{symbols-with-pos-enabled} is non-@code{nil}. Otherwise