comparison 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
comparison
equal deleted inserted replaced
31077:172cd577cca0 31078:540143cd8527
123 @item @code{t} 123 @item @code{t}
124 @cindex @code{t} input stream 124 @cindex @code{t} input stream
125 @code{t} used as a stream means that the input is read from the 125 @code{t} used as a stream means that the input is read from the
126 minibuffer. In fact, the minibuffer is invoked once and the text 126 minibuffer. In fact, the minibuffer is invoked once and the text
127 given by the user is made into a string that is then used as the 127 given by the user is made into a string that is then used as the
128 input stream. 128 input stream. If Emacs is running in batch mode, standard input is used
129 instead of the minibuffer. For example,
130 @example
131 (message "%s" (read t))
132 @end example
133 will read a Lisp expression from standard input and print the result
134 to standard output.
129 135
130 @item @code{nil} 136 @item @code{nil}
131 @cindex @code{nil} input stream 137 @cindex @code{nil} input stream
132 @code{nil} supplied as an input stream means to use the value of 138 @code{nil} supplied as an input stream means to use the value of
133 @code{standard-input} instead; that value is the @dfn{default input 139 @code{standard-input} instead; that value is the @dfn{default input