changeset 31078:540143cd8527

read in batch
author Dave Love <fx@gnu.org>
date Tue, 22 Aug 2000 18:42:51 +0000
parents 172cd577cca0
children ace4a0e50572
files lispref/streams.texi
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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