summaryrefslogtreecommitdiff
path: root/lispref/eval.texi
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-06-10 04:08:49 +0000
committerRichard M. Stallman <rms@gnu.org>1998-06-10 04:08:49 +0000
commit55607887e1a1a509d8030f04f1b6b9699fa469f6 (patch)
treebbe500f5741fcb9e13fbe185ca3c7d6e2c4e6906 /lispref/eval.texi
parenteb542c5159b062a10c1b663302d5a886875ad37e (diff)
downloademacs-55607887e1a1a509d8030f04f1b6b9699fa469f6.tar.gz
*** empty log message ***
Diffstat (limited to 'lispref/eval.texi')
-rw-r--r--lispref/eval.texi16
1 files changed, 10 insertions, 6 deletions
diff --git a/lispref/eval.texi b/lispref/eval.texi
index d49aba1cc16..80c07bf48a6 100644
--- a/lispref/eval.texi
+++ b/lispref/eval.texi
@@ -625,18 +625,22 @@ The number of currently active calls to @code{eval} is limited to
@code{max-lisp-eval-depth} (see below).
@end defun
-@deffn Command eval-region start end &optional stream
+@deffn Command eval-region start end &optional stream read-function
This function evaluates the forms in the current buffer in the region
defined by the positions @var{start} and @var{end}. It reads forms from
the region and calls @code{eval} on them until the end of the region is
reached, or until an error is signaled and not handled.
-If @var{stream} is supplied, @code{standard-output} is bound to it
-during the evaluation.
+If @var{stream} is non-@code{nil}, the values that result from
+evaluating the expressions in the region are printed using @var{stream}.
+@xref{Output Streams}.
-You can use the variable @code{load-read-function} to specify a function
-for @code{eval-region} to use instead of @code{read} for reading
-expressions. @xref{How Programs Do Loading}.
+If @var{read-function} is non-@code{nil}, it should be a function, which
+is used instead of @code{read} to read expressions one by one. This
+function is called with one argument, the stream for reading input. You
+can also use the variable @code{load-read-function} (@pxref{How Programs
+Do Loading}) to specify this function, but it is more robust to use the
+@var{read-function} argument.
@code{eval-region} always returns @code{nil}.
@end deffn