diff options
| author | Eli Zaretskii | 2008-10-19 12:29:22 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-10-19 12:29:22 +0000 |
| commit | 583d8b3cfe2401c7643f5d651b30b43bd9937f05 (patch) | |
| tree | 0dc41a9a65235889a1fb39845676b4796ef71ed4 | |
| parent | 437706cd52ee83871580a9c07a84f91c944a1163 (diff) | |
| download | emacs-583d8b3cfe2401c7643f5d651b30b43bd9937f05.tar.gz emacs-583d8b3cfe2401c7643f5d651b30b43bd9937f05.zip | |
(Synchronous Processes): Document `process-lines'.
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/processes.texi | 17 | ||||
| -rw-r--r-- | etc/NEWS | 1 |
3 files changed, 20 insertions, 2 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index ad3a9cfb05c..619dfcc5a2f 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,7 +1,9 @@ | |||
| 1 | 2008-10-19 Eli Zaretskii <eliz@gnu.org> | 1 | 2008-10-19 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * processes.texi (Synchronous Processes): Document `process-lines'. | ||
| 4 | |||
| 3 | * customize.texi (Variable Definitions): Document | 5 | * customize.texi (Variable Definitions): Document |
| 4 | custom-reevaluate-setting. | 6 | `custom-reevaluate-setting'. |
| 5 | 7 | ||
| 6 | 2008-10-18 Martin Rudalics <rudalics@gmx.at> | 8 | 2008-10-18 Martin Rudalics <rudalics@gmx.at> |
| 7 | 9 | ||
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 82f27f46264..76916043987 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -65,7 +65,7 @@ Processes}. | |||
| 65 | @node Subprocess Creation | 65 | @node Subprocess Creation |
| 66 | @section Functions that Create Subprocesses | 66 | @section Functions that Create Subprocesses |
| 67 | 67 | ||
| 68 | There are three functions that create a new subprocess in which to run | 68 | There are three primitives that create a new subprocess in which to run |
| 69 | a program. One of them, @code{start-process}, creates an asynchronous | 69 | a program. One of them, @code{start-process}, creates an asynchronous |
| 70 | process and returns a process object (@pxref{Asynchronous Processes}). | 70 | process and returns a process object (@pxref{Asynchronous Processes}). |
| 71 | The other two, @code{call-process} and @code{call-process-region}, | 71 | The other two, @code{call-process} and @code{call-process-region}, |
| @@ -449,6 +449,21 @@ This function executes @var{command} (a string) as a shell command, | |||
| 449 | then returns the command's output as a string. | 449 | then returns the command's output as a string. |
| 450 | @end defun | 450 | @end defun |
| 451 | 451 | ||
| 452 | @defun process-lines program &rest args | ||
| 453 | This function runs @var{program} in a separate process, waits for it | ||
| 454 | to finish, and returns its output as a list of strings. Each string | ||
| 455 | in the list holds a single line of text output by the program; the | ||
| 456 | end-of-line characters are stripped from each line. The arguments | ||
| 457 | beyond @var{program}, @var{args}, are strings that specify | ||
| 458 | command-line arguments with which to run the program. | ||
| 459 | |||
| 460 | If @var{program} exits with a non-zero exit status, this function | ||
| 461 | signals an error. | ||
| 462 | |||
| 463 | This function works by calling @code{call-process}, so program output | ||
| 464 | is decoded in the same way as for @code{call-process}. | ||
| 465 | @end defun | ||
| 466 | |||
| 452 | @node Asynchronous Processes | 467 | @node Asynchronous Processes |
| 453 | @section Creating an Asynchronous Process | 468 | @section Creating an Asynchronous Process |
| 454 | @cindex asynchronous subprocess | 469 | @cindex asynchronous subprocess |
| @@ -1324,6 +1324,7 @@ but obeys file handlers. The file handler is chosen based on | |||
| 1324 | and `process-file-shell-command' are also new; they call internally | 1324 | and `process-file-shell-command' are also new; they call internally |
| 1325 | `start-file-process' and `process-file', respectively. | 1325 | `start-file-process' and `process-file', respectively. |
| 1326 | 1326 | ||
| 1327 | +++ | ||
| 1327 | *** The new function `process-lines' executes an external program and | 1328 | *** The new function `process-lines' executes an external program and |
| 1328 | returns its output as a list of lines. | 1329 | returns its output as a list of lines. |
| 1329 | 1330 | ||