From af6398fadc00ed06c19ea44f413bcb4be76505fe Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 30 Aug 2024 13:57:29 +0300 Subject: [PATCH] More accurate documentation of 'equal' in ELisp Reference * doc/lispref/objects.texi (Equality Predicates): Add lists and conses. (Bug#72888) (cherry picked from commit dfcfaa0ef58bab0df243ebf816293a124f4c91c9) --- doc/lispref/objects.texi | 9 +++++---- 1 file 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. @end group @end example +The @code{equal} function recursively compares the contents of objects +if they are integers, strings, markers, lists, cons cells, vectors, +bool-vectors, byte-code function objects, char-tables, records, or font +objects. + Comparison of strings is case-sensitive, but does not take account of text properties---it compares only the characters in the strings. @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 @end group @end example -The @code{equal} function recursively compares the contents of objects -if they are integers, strings, markers, vectors, bool-vectors, -byte-code function objects, char-tables, records, or font objects. - If @var{object1} or @var{object2} contains symbols with position, @code{equal} treats them as if they were their bare symbols when @code{symbols-with-pos-enabled} is non-@code{nil}. Otherwise -- 2.39.5