Mercurial > hg > xemacs-beta
diff man/lispref/numbers.texi @ 74:54cc21c15cbb r20-0b32
Import from CVS: tag r20-0b32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:04:33 +0200 |
parents | 131b0175ea99 |
children | 65c19d2020f7 |
line wrap: on
line diff
--- a/man/lispref/numbers.texi Mon Aug 13 09:03:47 2007 +0200 +++ b/man/lispref/numbers.texi Mon Aug 13 09:04:33 2007 +0200 @@ -198,7 +198,7 @@ @defun natnump object @cindex natural numbers -The @code{wholenump} predicate (whose name comes from the phrase +The @code{natnump} predicate (whose name comes from the phrase ``natural-number-p'') tests to see whether its argument is a nonnegative integer, and returns @code{t} if so, @code{nil} otherwise. 0 is considered non-negative. @@ -223,7 +223,7 @@ of the objects. At present, each integer value has a unique Lisp object in XEmacs Lisp. -Therefore, @code{eq} is equivalent @code{=} where integers are +Therefore, @code{eq} is equivalent to @code{=} where integers are concerned. It is sometimes convenient to use @code{eq} for comparing an unknown value with an integer, because @code{eq} does not report an error if the unknown value is not a number---it accepts arguments of any @@ -395,6 +395,10 @@ (setq foo (1+ foo)) @result{} 5 @end example + +Now that the @code{cl} package is always available from lisp code, a +more convenient and natural way to increment a variable is +@w{@code{(incf foo)}}. @end defun @defun 1- number-or-marker