diff options
| author | Dave Love | 2000-08-22 18:42:51 +0000 |
|---|---|---|
| committer | Dave Love | 2000-08-22 18:42:51 +0000 |
| commit | e2b1c016fed45c39758bf162e80c01b54e8b46a4 (patch) | |
| tree | 92d319e4d20a7c0dd519fd95065a586450097da8 | |
| parent | 98c271ebeda49e58b4eaed4c9b4c1da87ec8b559 (diff) | |
| download | emacs-e2b1c016fed45c39758bf162e80c01b54e8b46a4.tar.gz emacs-e2b1c016fed45c39758bf162e80c01b54e8b46a4.zip | |
read in batch
| -rw-r--r-- | lispref/streams.texi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lispref/streams.texi b/lispref/streams.texi index efd905c9b20..74f9e43e92c 100644 --- a/lispref/streams.texi +++ b/lispref/streams.texi | |||
| @@ -125,7 +125,13 @@ came from''. In this case, it makes no difference what value | |||
| 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 |