aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorJim Blandy1992-07-16 22:56:42 +0000
committerJim Blandy1992-07-16 22:56:42 +0000
commitebb9e16f9893959a7a8036ed62b41e0667320874 (patch)
tree63510f8bbf802ed09d39ab550f954521fbe01929 /src/process.c
parente516799970be4553edae8ca46d5f64852befec77 (diff)
downloademacs-ebb9e16f9893959a7a8036ed62b41e0667320874.tar.gz
emacs-ebb9e16f9893959a7a8036ed62b41e0667320874.zip
*** empty log message ***
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c24
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
584Lisp_Object 587Lisp_Object
585get_process (name) 588get_process (name)
@@ -607,7 +610,8 @@ get_process (name)
607 610
608DEFUN ("delete-process", Fdelete_process, Sdelete_process, 1, 1, 0, 611DEFUN ("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\
610PROCESS may be a process or the name of one, or a buffer name.") 613PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
614nil, 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\
640signal -- for a process that has got a fatal signal.\n\ 644signal -- for a process that has got a fatal signal.\n\
641open -- for a network stream connection that is open.\n\ 645open -- for a network stream connection that is open.\n\
642closed -- for a network stream connection that is closed.\n\ 646closed -- for a network stream connection that is closed.\n\
643nil -- if arg is a process name and no such process exists.") 647nil -- if arg is a process name and no such process exists.\n\
648PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
649nil, 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)
2164DEFUN ("process-send-region", Fprocess_send_region, Sprocess_send_region, 2170DEFUN ("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\
2167PROCESS may be a process name or an actual process.\n\ 2173PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
2174nil, indicating the current buffer's process.\n\
2168Called from program, takes three arguments, PROCESS, START and END.\n\ 2175Called from program, takes three arguments, PROCESS, START and END.\n\
2169If the region is more than 500 characters long,\n\ 2176If the region is more than 500 characters long,\n\
2170it is sent in several bunches. This may happen even for shorter regions.\n\ 2177it 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.")
2190DEFUN ("process-send-string", Fprocess_send_string, Sprocess_send_string, 2197DEFUN ("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\
2193PROCESS may be a process name or an actual process.\n\ 2200PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
2201nil, indicating the current buffer's process.\n\
2194If STRING is more than 500 characters long,\n\ 2202If STRING is more than 500 characters long,\n\
2195it is sent in several bunches. This may happen even for shorter strings.\n\ 2203it is sent in several bunches. This may happen even for shorter strings.\n\
2196Output from processes can arrive in between bunches.") 2204Output from processes can arrive in between bunches.")
@@ -2373,6 +2381,7 @@ process_send_signal (process, signo, current_group, nomsg)
2373 2381
2374DEFUN ("interrupt-process", Finterrupt_process, Sinterrupt_process, 0, 2, 0, 2382DEFUN ("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\
2384PROCESS may be a process, a buffer, or the name of a process or buffer.\n\
2376Nil or no arg means current buffer's process.\n\ 2385Nil or no arg means current buffer's process.\n\
2377Second arg CURRENT-GROUP non-nil means send signal to\n\ 2386Second arg CURRENT-GROUP non-nil means send signal to\n\
2378the current process-group of the process's controlling terminal\n\ 2387the current process-group of the process's controlling terminal\n\
@@ -2449,7 +2458,8 @@ Both PID and CODE are integers.")
2449DEFUN ("process-send-eof", Fprocess_send_eof, Sprocess_send_eof, 0, 1, 0, 2458DEFUN ("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\
2451Eof comes after any text already sent to it.\n\ 2460Eof comes after any text already sent to it.\n\
2452nil or no arg means current buffer's process.") 2461PROCESS may be a process, a buffer, the name of a process or buffer, or\n\
2462nil, indicating the current buffer's process.")
2453 (process) 2463 (process)
2454 Lisp_Object process; 2464 Lisp_Object process;
2455{ 2465{