aboutsummaryrefslogtreecommitdiffstats
path: root/lispref/objects.texi
diff options
context:
space:
mode:
authorKaroly Lorentey2006-07-29 09:59:12 +0000
committerKaroly Lorentey2006-07-29 09:59:12 +0000
commit251bc578cc636223d618d06cf2a2bb7d07db9cce (patch)
tree58e1c6b0a35bb4a77e6cb77876e4bc6a9d3f2ab2 /lispref/objects.texi
parent99715bbc447eb633e45ffa23b87284771ce3ac74 (diff)
parent0ed0527cb02180a50f6744086ce3a487740c73e4 (diff)
downloademacs-251bc578cc636223d618d06cf2a2bb7d07db9cce.tar.gz
emacs-251bc578cc636223d618d06cf2a2bb7d07db9cce.zip
Merged from emacs@sv.gnu.org
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-351 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-352 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-353 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-354 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-355 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-356 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-357 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-358 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-359 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-360 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-361 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-362 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-363 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-364 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-365 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-366 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-367 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-368 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-369 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-370 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-115 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-116 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-117 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-118 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-119 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-120 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-573
Diffstat (limited to 'lispref/objects.texi')
-rw-r--r--lispref/objects.texi25
1 files changed, 14 insertions, 11 deletions
diff --git a/lispref/objects.texi b/lispref/objects.texi
index 3b51b96c780..cfb3864e9c9 100644
--- a/lispref/objects.texi
+++ b/lispref/objects.texi
@@ -632,7 +632,7 @@ come to refer to any structure made out of cons cells.
632 632
633@cindex atom 633@cindex atom
634 Because cons cells are so central to Lisp, we also have a word for 634 Because cons cells are so central to Lisp, we also have a word for
635``an object which is not a cons cell''. These objects are called 635``an object which is not a cons cell.'' These objects are called
636@dfn{atoms}. 636@dfn{atoms}.
637 637
638@cindex parenthesis 638@cindex parenthesis
@@ -1195,18 +1195,19 @@ Hash tables have no read syntax, and print using hash notation.
1195@node Function Type 1195@node Function Type
1196@subsection Function Type 1196@subsection Function Type
1197 1197
1198 Just as functions in other programming languages are executable, 1198 Lisp functions are executable code, just like functions in other
1199@dfn{Lisp function} objects are pieces of executable code. However, 1199programming languages. In Lisp, unlike most languages, functions are
1200functions in Lisp are primarily Lisp objects, and only secondarily the 1200also Lisp objects. A non-compiled function in Lisp is a lambda
1201text which represents them. These Lisp objects are lambda expressions: 1201expression: that is, a list whose first element is the symbol
1202lists whose first element is the symbol @code{lambda} (@pxref{Lambda 1202@code{lambda} (@pxref{Lambda Expressions}).
1203Expressions}).
1204 1203
1205 In most programming languages, it is impossible to have a function 1204 In most programming languages, it is impossible to have a function
1206without a name. In Lisp, a function has no intrinsic name. A lambda 1205without a name. In Lisp, a function has no intrinsic name. A lambda
1207expression is also called an @dfn{anonymous function} (@pxref{Anonymous 1206expression can be called as a function even though it has no name; to
1208Functions}). A named function in Lisp is actually a symbol with a valid 1207emphasize this, we also call it an @dfn{anonymous function}
1209function in its function cell (@pxref{Defining Functions}). 1208(@pxref{Anonymous Functions}). A named function in Lisp is just a
1209symbol with a valid function in its function cell (@pxref{Defining
1210Functions}).
1210 1211
1211 Most of the time, functions are called when their names are written in 1212 Most of the time, functions are called when their names are written in
1212Lisp expressions in Lisp programs. However, you can construct or obtain 1213Lisp expressions in Lisp programs. However, you can construct or obtain
@@ -1238,7 +1239,7 @@ without qualification, we mean a Lisp macro, not a keyboard macro.
1238 A @dfn{primitive function} is a function callable from Lisp but 1239 A @dfn{primitive function} is a function callable from Lisp but
1239written in the C programming language. Primitive functions are also 1240written in the C programming language. Primitive functions are also
1240called @dfn{subrs} or @dfn{built-in functions}. (The word ``subr'' is 1241called @dfn{subrs} or @dfn{built-in functions}. (The word ``subr'' is
1241derived from ``subroutine''.) Most primitive functions evaluate all 1242derived from ``subroutine.'') Most primitive functions evaluate all
1242their arguments when they are called. A primitive function that does 1243their arguments when they are called. A primitive function that does
1243not evaluate all its arguments is called a @dfn{special form} 1244not evaluate all its arguments is called a @dfn{special form}
1244(@pxref{Special Forms}).@refill 1245(@pxref{Special Forms}).@refill
@@ -1822,12 +1823,14 @@ This function returns a symbol naming the primitive type of
1822@example 1823@example
1823(type-of 1) 1824(type-of 1)
1824 @result{} integer 1825 @result{} integer
1826@group
1825(type-of 'nil) 1827(type-of 'nil)
1826 @result{} symbol 1828 @result{} symbol
1827(type-of '()) ; @r{@code{()} is @code{nil}.} 1829(type-of '()) ; @r{@code{()} is @code{nil}.}
1828 @result{} symbol 1830 @result{} symbol
1829(type-of '(x)) 1831(type-of '(x))
1830 @result{} cons 1832 @result{} cons
1833@end group
1831@end example 1834@end example
1832@end defun 1835@end defun
1833 1836