diff lispref/streams.texi @ 31078:540143cd8527

read in batch
author Dave Love <fx@gnu.org>
date Tue, 22 Aug 2000 18:42:51 +0000
parents d2e5f1b7d8e2
children 23a1cea22d13
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