diff options
| author | Kim F. Storm | 2004-08-17 22:35:13 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-08-17 22:35:13 +0000 |
| commit | 410bcc31682953f35314402005b1bd75c0cdcda5 (patch) | |
| tree | 7f8d8660e53a6d7b34f6b1a8a13e9051899149de | |
| parent | c438dc33d55cc4d9034a885d3c11f1e7de238db5 (diff) | |
| download | emacs-410bcc31682953f35314402005b1bd75c0cdcda5.tar.gz emacs-410bcc31682953f35314402005b1bd75c0cdcda5.zip | |
(Accepting Output): Add `just-this-one' arg to `accept-process-output'.
| -rw-r--r-- | lispref/processes.texi | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lispref/processes.texi b/lispref/processes.texi index f580a774ae7..16d7aa96c1d 100644 --- a/lispref/processes.texi +++ b/lispref/processes.texi | |||
| @@ -1240,7 +1240,7 @@ or terminal input. Occasionally it is useful in a Lisp program to | |||
| 1240 | explicitly permit output to arrive at a specific point, or even to wait | 1240 | explicitly permit output to arrive at a specific point, or even to wait |
| 1241 | until output arrives from a process. | 1241 | until output arrives from a process. |
| 1242 | 1242 | ||
| 1243 | @defun accept-process-output &optional process seconds millisec | 1243 | @defun accept-process-output &optional process seconds millisec just-this-one |
| 1244 | This function allows Emacs to read pending output from processes. The | 1244 | This function allows Emacs to read pending output from processes. The |
| 1245 | output is inserted in the associated buffers or given to their filter | 1245 | output is inserted in the associated buffers or given to their filter |
| 1246 | functions. If @var{process} is non-@code{nil} then this function does | 1246 | functions. If @var{process} is non-@code{nil} then this function does |
| @@ -1263,6 +1263,15 @@ Not all operating systems support waiting periods other than multiples | |||
| 1263 | of a second; on those that do not, you get an error if you specify | 1263 | of a second; on those that do not, you get an error if you specify |
| 1264 | nonzero @var{millisec}. | 1264 | nonzero @var{millisec}. |
| 1265 | 1265 | ||
| 1266 | @c Emacs 21.4 feature | ||
| 1267 | If @var{process} is a process, and the argument @var{just-this-one} is | ||
| 1268 | non-nil, only output from that process is handled, suspending output | ||
| 1269 | from other processes until some output has been received from that | ||
| 1270 | process or the timeout expires. If @var{just-this-one} is an integer, | ||
| 1271 | also inhibit running timers. This feature is generally not | ||
| 1272 | recommended, but may be necessary for specific applications, such as | ||
| 1273 | speech synthesis. | ||
| 1274 | |||
| 1266 | The function @code{accept-process-output} returns non-@code{nil} if it | 1275 | The function @code{accept-process-output} returns non-@code{nil} if it |
| 1267 | did get some output, or @code{nil} if the timeout expired before output | 1276 | did get some output, or @code{nil} if the timeout expired before output |
| 1268 | arrived. | 1277 | arrived. |
| @@ -1664,7 +1673,7 @@ meaning ask the system to allocate an unused port to listen on. | |||
| 1664 | @end defun | 1673 | @end defun |
| 1665 | 1674 | ||
| 1666 | @node Datagrams | 1675 | @node Datagrams |
| 1667 | @section Datagrams | 1676 | @section Datagrams |
| 1668 | @cindex datagrams | 1677 | @cindex datagrams |
| 1669 | 1678 | ||
| 1670 | A datagram connection communicates with individual packets rather | 1679 | A datagram connection communicates with individual packets rather |
| @@ -1951,7 +1960,7 @@ the port number. | |||
| 1951 | 1960 | ||
| 1952 | @example | 1961 | @example |
| 1953 | (featurep 'make-network-process '(@var{keyword} @var{value})) | 1962 | (featurep 'make-network-process '(@var{keyword} @var{value})) |
| 1954 | @end example | 1963 | @end example |
| 1955 | 1964 | ||
| 1956 | @noindent | 1965 | @noindent |
| 1957 | The result of the first form is @code{t} if it works to specify | 1966 | The result of the first form is @code{t} if it works to specify |
| @@ -1977,7 +1986,7 @@ Non-@code{nil} if the system can select the port for a server. | |||
| 1977 | 1986 | ||
| 1978 | @example | 1987 | @example |
| 1979 | (featurep 'make-network-process '@var{keyword}) | 1988 | (featurep 'make-network-process '@var{keyword}) |
| 1980 | @end example | 1989 | @end example |
| 1981 | 1990 | ||
| 1982 | Here are some of the option @var{keyword}s you can test in | 1991 | Here are some of the option @var{keyword}s you can test in |
| 1983 | this way. | 1992 | this way. |