]> git.eshelyaron.com Git - emacs.git/commitdiff
More accurate documentation of 'equal' in ELisp Reference
authorEli Zaretskii <eliz@gnu.org>
Fri, 30 Aug 2024 10:57:29 +0000 (13:57 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:50 +0000 (09:51 +0200)
* doc/lispref/objects.texi (Equality Predicates): Add lists and
conses.  (Bug#72888)

(cherry picked from commit dfcfaa0ef58bab0df243ebf816293a124f4c91c9)

doc/lispref/objects.texi

index ec6ab8204d666018637fbc43c0efa296ca9ad64b..399a1d169c262de2fc232edd1aca2c8dbf7ec005 100644 (file)
@@ -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