aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/objects.texi
diff options
context:
space:
mode:
authorEli Zaretskii2024-03-01 10:52:50 +0200
committerEli Zaretskii2024-03-01 10:52:50 +0200
commit31a4bec609578afd453caf232f78e275c3a075bc (patch)
treebc9f5f7255b9a8fc776b57b984e163182ac525d4 /doc/lispref/objects.texi
parentc55694785e93212d1da5f96123288e596cb24f53 (diff)
downloademacs-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.texi19
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
2499regardless of whether this optimization is in use. 2499regardless 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
2503Lisp types are organized in a hierarchy, this means that types can 2504Lisp object types are organized in a hierarchy, which means that types
2504derive from other types. Objects of a type B (which derives from type 2505can derive from other types. Objects of type B (which derives from type
2505A) inherite all the charateristics of type A. This also means that 2506A) inherit all the characteristics of type A@. This also means that
2506every objects of type B is at the same time of type A. 2507every object of type B is at the same time an object of type A from
2508which it derives.
2507 2509
2508Every type derives from type @code{t}. 2510Every 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
2513The Lisp Type Hierarchy for primitive types can be represented as 2515The Lisp Type Hierarchy for primitive types can be represented as
2514follow: 2516follows:
2515 2517
2516@image{type_hierarchy,,,,png} 2518@noindent
2519@image{type_hierarchy,,,,.jpg}
2517 2520
2518For example type @code{list} derives from (is a special kind of) type 2521For 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}.