diff options
| author | Eli Zaretskii | 2024-03-01 10:52:50 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-03-01 10:52:50 +0200 |
| commit | 31a4bec609578afd453caf232f78e275c3a075bc (patch) | |
| tree | bc9f5f7255b9a8fc776b57b984e163182ac525d4 /doc/lispref/objects.texi | |
| parent | c55694785e93212d1da5f96123288e596cb24f53 (diff) | |
| download | emacs-31a4bec609578afd453caf232f78e275c3a075bc.tar.gz emacs-31a4bec609578afd453caf232f78e275c3a075bc.zip | |
Fix documentation of last change
* doc/lispref/objects.texi (Type Hierarchy): Fix wording and
markup.
* doc/lispref/elisp.texi (Top): Add new node to @detailmenu.
Diffstat (limited to 'doc/lispref/objects.texi')
| -rw-r--r-- | doc/lispref/objects.texi | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index 9a4c1473d75..dd212ef700c 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi | |||
| @@ -60,7 +60,7 @@ to use these types can be found in later chapters. | |||
| 60 | * Type Predicates:: Tests related to types. | 60 | * Type Predicates:: Tests related to types. |
| 61 | * Equality Predicates:: Tests of equality between any two objects. | 61 | * Equality Predicates:: Tests of equality between any two objects. |
| 62 | * Mutability:: Some objects should not be modified. | 62 | * Mutability:: Some objects should not be modified. |
| 63 | * Type Hierarchy:: Type Hierarchy. | 63 | * Type Hierarchy:: Type Hierarchy of Emacs Lisp objects. |
| 64 | @end menu | 64 | @end menu |
| 65 | 65 | ||
| 66 | @node Printed Representation | 66 | @node Printed Representation |
| @@ -2499,11 +2499,13 @@ instances. Lisp programs should be written so that they work | |||
| 2499 | regardless of whether this optimization is in use. | 2499 | regardless of whether this optimization is in use. |
| 2500 | 2500 | ||
| 2501 | @node Type Hierarchy | 2501 | @node Type Hierarchy |
| 2502 | @section Type Hierarchy of Emacs Lisp Objects | ||
| 2502 | 2503 | ||
| 2503 | Lisp types are organized in a hierarchy, this means that types can | 2504 | Lisp object types are organized in a hierarchy, which means that types |
| 2504 | derive from other types. Objects of a type B (which derives from type | 2505 | can derive from other types. Objects of type B (which derives from type |
| 2505 | A) inherite all the charateristics of type A. This also means that | 2506 | A) inherit all the characteristics of type A@. This also means that |
| 2506 | every objects of type B is at the same time of type A. | 2507 | every object of type B is at the same time an object of type A from |
| 2508 | which it derives. | ||
| 2507 | 2509 | ||
| 2508 | Every type derives from type @code{t}. | 2510 | Every type derives from type @code{t}. |
| 2509 | 2511 | ||
| @@ -2511,9 +2513,10 @@ New types can be defined by the user through @code{defclass} or | |||
| 2511 | @code{cl-defstruct}. | 2513 | @code{cl-defstruct}. |
| 2512 | 2514 | ||
| 2513 | The Lisp Type Hierarchy for primitive types can be represented as | 2515 | The Lisp Type Hierarchy for primitive types can be represented as |
| 2514 | follow: | 2516 | follows: |
| 2515 | 2517 | ||
| 2516 | @image{type_hierarchy,,,,png} | 2518 | @noindent |
| 2519 | @image{type_hierarchy,,,,.jpg} | ||
| 2517 | 2520 | ||
| 2518 | For example type @code{list} derives from (is a special kind of) type | 2521 | For example type @code{list} derives from (is a special kind of) type |
| 2519 | @code{sequence} which on itself derives from @code{t}. | 2522 | @code{sequence} which itself derives from @code{t}. |