diff options
| author | Eli Zaretskii | 2023-01-02 13:52:25 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-01-02 13:52:25 +0200 |
| commit | b7ad0b40148bd5905497a4c05fced4e0b9099812 (patch) | |
| tree | 0bc60dec5f8a7bed07adfafffa47d65b2d191ab2 /src | |
| parent | 4520f09dd8bc9a0014d6afd0f76c2c77dcb2e5a0 (diff) | |
| download | emacs-b7ad0b40148bd5905497a4c05fced4e0b9099812.tar.gz emacs-b7ad0b40148bd5905497a4c05fced4e0b9099812.zip | |
; Clarify doc strings of 'call-process' and 'call-process-region'
* src/callproc.c (Fcall_process, Fcall_process_region): Document
that the destination buffer can be specified by its name.
(Bug#60477)
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/callproc.c b/src/callproc.c index 7208ceb5d2f..5e1e1a8cc0a 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -259,8 +259,8 @@ input come from an Emacs buffer, use `call-process-region' instead. | |||
| 259 | Third argument DESTINATION specifies how to handle program's output. | 259 | Third argument DESTINATION specifies how to handle program's output. |
| 260 | (\"Output\" here means both standard output and standard error | 260 | (\"Output\" here means both standard output and standard error |
| 261 | output.) | 261 | output.) |
| 262 | If DESTINATION is a buffer, or t that stands for the current buffer, | 262 | If DESTINATION is a buffer or the name of a buffer, or t (which stands for |
| 263 | it means insert output in that buffer before point. | 263 | the current buffer), it means insert output in that buffer before point. |
| 264 | If DESTINATION is nil, it means discard output; 0 means discard | 264 | If DESTINATION is nil, it means discard output; 0 means discard |
| 265 | and don't wait for the program to terminate. | 265 | and don't wait for the program to terminate. |
| 266 | If DESTINATION is `(:file FILE)', where FILE is a file name string, | 266 | If DESTINATION is `(:file FILE)', where FILE is a file name string, |
| @@ -1055,6 +1055,7 @@ Insert output in BUFFER before point; t means current buffer; nil for | |||
| 1055 | BUFFER means discard it; 0 means discard and don't wait; and `(:file | 1055 | BUFFER means discard it; 0 means discard and don't wait; and `(:file |
| 1056 | FILE)', where FILE is a file name string, means that it should be | 1056 | FILE)', where FILE is a file name string, means that it should be |
| 1057 | written to that file (if the file already exists it is overwritten). | 1057 | written to that file (if the file already exists it is overwritten). |
| 1058 | BUFFER can be a string which is the name of a buffer. | ||
| 1058 | BUFFER can also have the form (REAL-BUFFER STDERR-FILE); in that case, | 1059 | BUFFER can also have the form (REAL-BUFFER STDERR-FILE); in that case, |
| 1059 | REAL-BUFFER says what to do with standard output, as above, | 1060 | REAL-BUFFER says what to do with standard output, as above, |
| 1060 | while STDERR-FILE says what to do with standard error in the child. | 1061 | while STDERR-FILE says what to do with standard error in the child. |