diff options
| author | Richard M. Stallman | 2007-05-05 04:05:14 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-05-05 04:05:14 +0000 |
| commit | c88be8a752ce300f4399547fa3a51919de601a2c (patch) | |
| tree | eefd9ec50dfec083d7103b1e5533243500b3cbf7 | |
| parent | 55da0626a4bb1ec47daf673e00caeb4c98409e22 (diff) | |
| download | emacs-c88be8a752ce300f4399547fa3a51919de601a2c.tar.gz emacs-c88be8a752ce300f4399547fa3a51919de601a2c.zip | |
(Accepting Output): accept-process-output
uses microseconds, not milliseconds. But that arg is obsolete.
| -rw-r--r-- | lispref/processes.texi | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lispref/processes.texi b/lispref/processes.texi index fbc8b785c11..909f5507790 100644 --- a/lispref/processes.texi +++ b/lispref/processes.texi | |||
| @@ -1296,24 +1296,24 @@ or terminal input. Occasionally it is useful in a Lisp program to | |||
| 1296 | explicitly permit output to arrive at a specific point, or even to wait | 1296 | explicitly permit output to arrive at a specific point, or even to wait |
| 1297 | until output arrives from a process. | 1297 | until output arrives from a process. |
| 1298 | 1298 | ||
| 1299 | @defun accept-process-output &optional process seconds millisec just-this-one | 1299 | @defun accept-process-output &optional process seconds microsec just-this-one |
| 1300 | This function allows Emacs to read pending output from processes. The | 1300 | This function allows Emacs to read pending output from processes. The |
| 1301 | output is inserted in the associated buffers or given to their filter | 1301 | output is inserted in the associated buffers or given to their filter |
| 1302 | functions. If @var{process} is non-@code{nil} then this function does | 1302 | functions. If @var{process} is non-@code{nil} then this function does |
| 1303 | not return until some output has been received from @var{process}. | 1303 | not return until some output has been received from @var{process}. |
| 1304 | 1304 | ||
| 1305 | @c Emacs 19 feature | 1305 | @c Emacs 19 feature |
| 1306 | The arguments @var{seconds} and @var{millisec} let you specify timeout | 1306 | The arguments @var{seconds} and @var{microsec} let you specify timeout |
| 1307 | periods. The former specifies a period measured in seconds and the | 1307 | periods. The former specifies a period measured in seconds and the |
| 1308 | latter specifies one measured in milliseconds. The two time periods | 1308 | latter specifies one measured in microseconds. The two time periods |
| 1309 | thus specified are added together, and @code{accept-process-output} | 1309 | thus specified are added together, and @code{accept-process-output} |
| 1310 | returns after that much time whether or not there has been any | 1310 | returns after that much time, whether or not there has been any |
| 1311 | subprocess output. | 1311 | subprocess output. |
| 1312 | 1312 | ||
| 1313 | The argument @var{seconds} need not be an integer. If it is a floating | 1313 | The argument @var{microsec} is semi-obsolete nowadays because |
| 1314 | point number, this function waits for a fractional number of seconds. | 1314 | @var{seconds} can be a floating point number to specify waiting a |
| 1315 | If @var{seconds} is 0, the function accepts whatever output is | 1315 | fractional number of seconds. If @var{seconds} is 0, the function |
| 1316 | pending but does not wait. | 1316 | accepts whatever output is pending but does not wait. |
| 1317 | 1317 | ||
| 1318 | @c Emacs 22.1 feature | 1318 | @c Emacs 22.1 feature |
| 1319 | If @var{process} is a process, and the argument @var{just-this-one} is | 1319 | If @var{process} is a process, and the argument @var{just-this-one} is |