diff options
| author | Jim Blandy | 1992-07-16 22:56:42 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-07-16 22:56:42 +0000 |
| commit | ebb9e16f9893959a7a8036ed62b41e0667320874 (patch) | |
| tree | 63510f8bbf802ed09d39ab550f954521fbe01929 /src/process.c | |
| parent | e516799970be4553edae8ca46d5f64852befec77 (diff) | |
| download | emacs-ebb9e16f9893959a7a8036ed62b41e0667320874.tar.gz emacs-ebb9e16f9893959a7a8036ed62b41e0667320874.zip | |
*** empty log message ***
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c index e950a7b4395..fd0ba22cd9a 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -579,7 +579,10 @@ BUFFER may be a buffer or the name of one.") | |||
| 579 | return Qnil; | 579 | return Qnil; |
| 580 | } | 580 | } |
| 581 | 581 | ||
| 582 | /* This is how commands for the user decode process arguments */ | 582 | /* This is how commands for the user decode process arguments. It |
| 583 | accepts a process, a process name, a buffer, a buffer name, or nil. | ||
| 584 | Buffers denote the first process in the buffer, and nil denotes the | ||
| 585 | current buffer. */ | ||
| 583 | 586 | ||
| 584 | Lisp_Object | 587 | Lisp_Object |
| 585 | get_process (name) | 588 | get_process (name) |
| @@ -607,7 +610,8 @@ get_process (name) | |||
| 607 | 610 | ||
| 608 | DEFUN ("delete-process", Fdelete_process, Sdelete_process, 1, 1, 0, | 611 | DEFUN ("delete-process", Fdelete_process, Sdelete_process, 1, 1, 0, |
| 609 | "Delete PROCESS: kill it and forget about it immediately.\n\ | 612 | "Delete PROCESS: kill it and forget about it immediately.\n\ |
| 610 | PROCESS may be a process or the name of one, or a buffer name.") | 613 | PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ |
| 614 | nil, indicating the current buffer's process.") | ||
| 611 | (proc) | 615 | (proc) |
| 612 | register Lisp_Object proc; | 616 | register Lisp_Object proc; |
| 613 | { | 617 | { |
| @@ -640,7 +644,9 @@ exit -- for a process that has exited.\n\ | |||
| 640 | signal -- for a process that has got a fatal signal.\n\ | 644 | signal -- for a process that has got a fatal signal.\n\ |
| 641 | open -- for a network stream connection that is open.\n\ | 645 | open -- for a network stream connection that is open.\n\ |
| 642 | closed -- for a network stream connection that is closed.\n\ | 646 | closed -- for a network stream connection that is closed.\n\ |
| 643 | nil -- if arg is a process name and no such process exists.") | 647 | nil -- if arg is a process name and no such process exists.\n\ |
| 648 | PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ | ||
| 649 | nil, indicating the current buffer's process.") | ||
| 644 | /* command -- for a command channel opened to Emacs by another process.\n\ | 650 | /* command -- for a command channel opened to Emacs by another process.\n\ |
| 645 | external -- for an i/o channel opened to Emacs by another process.\n\ */ | 651 | external -- for an i/o channel opened to Emacs by another process.\n\ */ |
| 646 | (proc) | 652 | (proc) |
| @@ -648,7 +654,7 @@ nil -- if arg is a process name and no such process exists.") | |||
| 648 | { | 654 | { |
| 649 | register struct Lisp_Process *p; | 655 | register struct Lisp_Process *p; |
| 650 | register Lisp_Object status; | 656 | register Lisp_Object status; |
| 651 | proc = Fget_process (proc); | 657 | proc = get_process (proc); |
| 652 | if (NILP (proc)) | 658 | if (NILP (proc)) |
| 653 | return proc; | 659 | return proc; |
| 654 | p = XPROCESS (proc); | 660 | p = XPROCESS (proc); |
| @@ -2164,7 +2170,8 @@ send_process (proc, buf, len) | |||
| 2164 | DEFUN ("process-send-region", Fprocess_send_region, Sprocess_send_region, | 2170 | DEFUN ("process-send-region", Fprocess_send_region, Sprocess_send_region, |
| 2165 | 3, 3, 0, | 2171 | 3, 3, 0, |
| 2166 | "Send current contents of region as input to PROCESS.\n\ | 2172 | "Send current contents of region as input to PROCESS.\n\ |
| 2167 | PROCESS may be a process name or an actual process.\n\ | 2173 | PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ |
| 2174 | nil, indicating the current buffer's process.\n\ | ||
| 2168 | Called from program, takes three arguments, PROCESS, START and END.\n\ | 2175 | Called from program, takes three arguments, PROCESS, START and END.\n\ |
| 2169 | If the region is more than 500 characters long,\n\ | 2176 | If the region is more than 500 characters long,\n\ |
| 2170 | it is sent in several bunches. This may happen even for shorter regions.\n\ | 2177 | it is sent in several bunches. This may happen even for shorter regions.\n\ |
| @@ -2190,7 +2197,8 @@ Output from processes can arrive in between bunches.") | |||
| 2190 | DEFUN ("process-send-string", Fprocess_send_string, Sprocess_send_string, | 2197 | DEFUN ("process-send-string", Fprocess_send_string, Sprocess_send_string, |
| 2191 | 2, 2, 0, | 2198 | 2, 2, 0, |
| 2192 | "Send PROCESS the contents of STRING as input.\n\ | 2199 | "Send PROCESS the contents of STRING as input.\n\ |
| 2193 | PROCESS may be a process name or an actual process.\n\ | 2200 | PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ |
| 2201 | nil, indicating the current buffer's process.\n\ | ||
| 2194 | If STRING is more than 500 characters long,\n\ | 2202 | If STRING is more than 500 characters long,\n\ |
| 2195 | it is sent in several bunches. This may happen even for shorter strings.\n\ | 2203 | it is sent in several bunches. This may happen even for shorter strings.\n\ |
| 2196 | Output from processes can arrive in between bunches.") | 2204 | Output from processes can arrive in between bunches.") |
| @@ -2373,6 +2381,7 @@ process_send_signal (process, signo, current_group, nomsg) | |||
| 2373 | 2381 | ||
| 2374 | DEFUN ("interrupt-process", Finterrupt_process, Sinterrupt_process, 0, 2, 0, | 2382 | DEFUN ("interrupt-process", Finterrupt_process, Sinterrupt_process, 0, 2, 0, |
| 2375 | "Interrupt process PROCESS. May be process or name of one.\n\ | 2383 | "Interrupt process PROCESS. May be process or name of one.\n\ |
| 2384 | PROCESS may be a process, a buffer, or the name of a process or buffer.\n\ | ||
| 2376 | Nil or no arg means current buffer's process.\n\ | 2385 | Nil or no arg means current buffer's process.\n\ |
| 2377 | Second arg CURRENT-GROUP non-nil means send signal to\n\ | 2386 | Second arg CURRENT-GROUP non-nil means send signal to\n\ |
| 2378 | the current process-group of the process's controlling terminal\n\ | 2387 | the current process-group of the process's controlling terminal\n\ |
| @@ -2449,7 +2458,8 @@ Both PID and CODE are integers.") | |||
| 2449 | DEFUN ("process-send-eof", Fprocess_send_eof, Sprocess_send_eof, 0, 1, 0, | 2458 | DEFUN ("process-send-eof", Fprocess_send_eof, Sprocess_send_eof, 0, 1, 0, |
| 2450 | "Make PROCESS see end-of-file in its input.\n\ | 2459 | "Make PROCESS see end-of-file in its input.\n\ |
| 2451 | Eof comes after any text already sent to it.\n\ | 2460 | Eof comes after any text already sent to it.\n\ |
| 2452 | nil or no arg means current buffer's process.") | 2461 | PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ |
| 2462 | nil, indicating the current buffer's process.") | ||
| 2453 | (process) | 2463 | (process) |
| 2454 | Lisp_Object process; | 2464 | Lisp_Object process; |
| 2455 | { | 2465 | { |