# HG changeset patch # User Dave Love # Date 966969771 0 # Node ID 540143cd8527f507999b4bcfa3dd453c6db67d08 # Parent 172cd577cca0eb33258f554f405ffeddbae9a982 read in batch diff -r 172cd577cca0 -r 540143cd8527 lispref/streams.texi --- a/lispref/streams.texi Tue Aug 22 18:41:50 2000 +0000 +++ b/lispref/streams.texi Tue Aug 22 18:42:51 2000 +0000 @@ -125,7 +125,13 @@ @code{t} used as a stream means that the input is read from the minibuffer. In fact, the minibuffer is invoked once and the text given by the user is made into a string that is then used as the -input stream. +input stream. If Emacs is running in batch mode, standard input is used +instead of the minibuffer. For example, +@example +(message "%s" (read t)) +@end example +will read a Lisp expression from standard input and print the result +to standard output. @item @code{nil} @cindex @code{nil} input stream