comparison src/process.c @ 808:707866b2a190

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Thu, 16 Jul 1992 22:56:42 +0000
parents e4093444f9f8
children c6e94e13926c
comparison
equal deleted inserted replaced
807:4f28bd14272c 808:707866b2a190
577 return proc; 577 return proc;
578 } 578 }
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)
586 register Lisp_Object name; 589 register Lisp_Object name;
587 { 590 {
605 /* NOTREACHED */ 608 /* NOTREACHED */
606 } 609 }
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 {
614 proc = get_process (proc); 618 proc = get_process (proc);
615 XPROCESS (proc)->raw_status_low = Qnil; 619 XPROCESS (proc)->raw_status_low = Qnil;
638 stop -- for a process stopped but continuable.\n\ 642 stop -- for a process stopped but continuable.\n\
639 exit -- for a process that has exited.\n\ 643 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)
647 register Lisp_Object proc; 653 register Lisp_Object proc;
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);
655 if (!NILP (p->raw_status_low)) 661 if (!NILP (p->raw_status_low))
656 update_status (p); 662 update_status (p);
2162 } 2168 }
2163 2169
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\
2171 Output from processes can arrive in between bunches.") 2178 Output from processes can arrive in between bunches.")
2172 (process, start, end) 2179 (process, start, end)
2188 } 2195 }
2189 2196
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.")
2197 (process, string) 2205 (process, string)
2198 Lisp_Object process, string; 2206 Lisp_Object process, string;
2371 #endif 2379 #endif
2372 } 2380 }
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\
2379 rather than to the process's own process group.\n\ 2388 rather than to the process's own process group.\n\
2380 If the process is a shell, this means interrupt current subjob\n\ 2389 If the process is a shell, this means interrupt current subjob\n\
2447 } 2456 }
2448 2457
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 {
2456 Lisp_Object proc; 2466 Lisp_Object proc;
2457 2467