comparison lispref/eval.texi @ 22419:3967db186db6

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Wed, 10 Jun 1998 04:08:49 +0000
parents d4ac295a98b3
children 89afca54a135
comparison
equal deleted inserted replaced
22418:340060628c47 22419:3967db186db6
623 623
624 The number of currently active calls to @code{eval} is limited to 624 The number of currently active calls to @code{eval} is limited to
625 @code{max-lisp-eval-depth} (see below). 625 @code{max-lisp-eval-depth} (see below).
626 @end defun 626 @end defun
627 627
628 @deffn Command eval-region start end &optional stream 628 @deffn Command eval-region start end &optional stream read-function
629 This function evaluates the forms in the current buffer in the region 629 This function evaluates the forms in the current buffer in the region
630 defined by the positions @var{start} and @var{end}. It reads forms from 630 defined by the positions @var{start} and @var{end}. It reads forms from
631 the region and calls @code{eval} on them until the end of the region is 631 the region and calls @code{eval} on them until the end of the region is
632 reached, or until an error is signaled and not handled. 632 reached, or until an error is signaled and not handled.
633 633
634 If @var{stream} is supplied, @code{standard-output} is bound to it 634 If @var{stream} is non-@code{nil}, the values that result from
635 during the evaluation. 635 evaluating the expressions in the region are printed using @var{stream}.
636 636 @xref{Output Streams}.
637 You can use the variable @code{load-read-function} to specify a function 637
638 for @code{eval-region} to use instead of @code{read} for reading 638 If @var{read-function} is non-@code{nil}, it should be a function, which
639 expressions. @xref{How Programs Do Loading}. 639 is used instead of @code{read} to read expressions one by one. This
640 function is called with one argument, the stream for reading input. You
641 can also use the variable @code{load-read-function} (@pxref{How Programs
642 Do Loading}) to specify this function, but it is more robust to use the
643 @var{read-function} argument.
640 644
641 @code{eval-region} always returns @code{nil}. 645 @code{eval-region} always returns @code{nil}.
642 @end deffn 646 @end deffn
643 647
644 @cindex evaluation of buffer contents 648 @cindex evaluation of buffer contents