Mercurial > emacs
diff lispref/processes.texi @ 27259:c41efa6c4be1
*** empty log message ***
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Mon, 10 Jan 2000 08:56:40 +0000 |
| parents | d2e5f1b7d8e2 |
| children | 70846ee19545 |
line wrap: on
line diff
--- a/lispref/processes.texi Mon Jan 10 08:44:26 2000 +0000 +++ b/lispref/processes.texi Mon Jan 10 08:56:40 2000 +0000 @@ -875,7 +875,7 @@ called the @dfn{filter function} can be called to act on the output. If the process has no buffer and no filter function, its output is discarded. - + Output from a subprocess can arrive only while Emacs is waiting: when reading terminal input, in @code{sit-for} and @code{sleep-for} (@pxref{Waiting}), and in @code{accept-process-output} (@pxref{Accepting @@ -885,6 +885,13 @@ can arrive before you finish, if the code in between does not call any primitive that waits. + It is impossible to separate the standard output and standard error +streams of the subprocess, because Emacs normally spawns the subprocess +inside a pseudo-TTY, and a pseudo-TTY has only one output channel. If +you want to keep the output to those streams separate, you should +redirect one of them to a file--for example, by using an appropriate +shell command. + Subprocess output is normally decoded using a coding system before the buffer or filter function receives it, much like text read from a file. You can use @code{set-process-coding-system} to specify which coding
