diff options
| author | Mattias EngdegÄrd | 2024-08-31 18:39:46 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-08-31 18:39:46 +0200 |
| commit | 2ca7d5649c69efbc65a4c7c074c52d8f4f0d4a21 (patch) | |
| tree | 3f32fd7db65332f811b9310b5831c7396e4029b2 /doc/lispref/objects.texi | |
| parent | 5fd75133cfe389004f9fca8f11e093e531c45fe2 (diff) | |
| download | emacs-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.texi | 10 |
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 | ||
| 2416 | The @code{equal} function recursively compares the contents of objects | 2416 | The @code{equal} function compares strings and bool-vectors by value. |
| 2417 | if they are integers, strings, markers, lists, cons cells, vectors, | 2417 | Numbers are compared by type and numeric value, using @code{eql}. |
| 2418 | bool-vectors, byte-code function objects, char-tables, records, or font | 2418 | Lists, cons cells, vectors, records, markers, char-tables, font objects, |
| 2419 | objects. | 2419 | and function objects (closures)@footnote{However, equality of distinct |
| 2420 | function objects cannot be guaranteed in general.} are compared | ||
| 2421 | recursively by using @code{equal} on their constituent parts. | ||
| 2420 | 2422 | ||
| 2421 | Comparison of strings is case-sensitive, but does not take account of | 2423 | Comparison of strings is case-sensitive, but does not take account of |
| 2422 | text properties---it compares only the characters in the strings. | 2424 | text properties---it compares only the characters in the strings. |