aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-10-19 12:29:22 +0000
committerEli Zaretskii2008-10-19 12:29:22 +0000
commit583d8b3cfe2401c7643f5d651b30b43bd9937f05 (patch)
tree0dc41a9a65235889a1fb39845676b4796ef71ed4
parent437706cd52ee83871580a9c07a84f91c944a1163 (diff)
downloademacs-583d8b3cfe2401c7643f5d651b30b43bd9937f05.tar.gz
emacs-583d8b3cfe2401c7643f5d651b30b43bd9937f05.zip
(Synchronous Processes): Document `process-lines'.
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/processes.texi17
-rw-r--r--etc/NEWS1
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 @@
12008-10-19 Eli Zaretskii <eliz@gnu.org> 12008-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
62008-10-18 Martin Rudalics <rudalics@gmx.at> 82008-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
69a program. One of them, @code{start-process}, creates an asynchronous 69a program. One of them, @code{start-process}, creates an asynchronous
70process and returns a process object (@pxref{Asynchronous Processes}). 70process and returns a process object (@pxref{Asynchronous Processes}).
71The other two, @code{call-process} and @code{call-process-region}, 71The 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,
449then returns the command's output as a string. 449then returns the command's output as a string.
450@end defun 450@end defun
451 451
452@defun process-lines program &rest args
453This function runs @var{program} in a separate process, waits for it
454to finish, and returns its output as a list of strings. Each string
455in the list holds a single line of text output by the program; the
456end-of-line characters are stripped from each line. The arguments
457beyond @var{program}, @var{args}, are strings that specify
458command-line arguments with which to run the program.
459
460If @var{program} exits with a non-zero exit status, this function
461signals an error.
462
463This function works by calling @code{call-process}, so program output
464is 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
diff --git a/etc/NEWS b/etc/NEWS
index 5bb8d829e2c..20d71c89c2f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1324,6 +1324,7 @@ but obeys file handlers. The file handler is chosen based on
1324and `process-file-shell-command' are also new; they call internally 1324and `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
1328returns its output as a list of lines. 1329returns its output as a list of lines.
1329 1330