diff options
| author | Eli Zaretskii | 2024-08-30 13:57:29 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-30 13:57:29 +0300 |
| commit | dfcfaa0ef58bab0df243ebf816293a124f4c91c9 (patch) | |
| tree | 5dd23183acf51e994eacf07dd60606fe6acb86a7 /doc/lispref/objects.texi | |
| parent | 5fbbc3d0cd277ec71de55c9fd9036afadc875020 (diff) | |
| download | emacs-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.texi | 9 |
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 | ||
| 2416 | The @code{equal} function recursively compares the contents of objects | ||
| 2417 | if they are integers, strings, markers, lists, cons cells, vectors, | ||
| 2418 | bool-vectors, byte-code function objects, char-tables, records, or font | ||
| 2419 | objects. | ||
| 2420 | |||
| 2416 | Comparison of strings is case-sensitive, but does not take account of | 2421 | Comparison of strings is case-sensitive, but does not take account of |
| 2417 | text properties---it compares only the characters in the strings. | 2422 | text 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 | ||
| 2431 | The @code{equal} function recursively compares the contents of objects | ||
| 2432 | if they are integers, strings, markers, vectors, bool-vectors, | ||
| 2433 | byte-code function objects, char-tables, records, or font objects. | ||
| 2434 | |||
| 2435 | If @var{object1} or @var{object2} contains symbols with position, | 2436 | If @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 |