aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPavel Janík2001-10-20 20:56:10 +0000
committerPavel Janík2001-10-20 20:56:10 +0000
commitfdb82f93376a6b495c573a6c788b807acffdbfa9 (patch)
tree107b731b733908446a3902f6ce0e4f2d23dcd8f9 /src/process.c
parentc0a53abba1d89bb487e3a38a0e7336bdce46fd1d (diff)
downloademacs-fdb82f93376a6b495c573a6c788b807acffdbfa9.tar.gz
emacs-fdb82f93376a6b495c573a6c788b807acffdbfa9.zip
Change doc-string comments to `new style' [w/`doc:' keyword].
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c468
1 files changed, 234 insertions, 234 deletions
diff --git a/src/process.c b/src/process.c
index 956f2b8fdb3..c833e9c3bef 100644
--- a/src/process.c
+++ b/src/process.c
@@ -481,16 +481,16 @@ remove_process (proc)
481} 481}
482 482
483DEFUN ("processp", Fprocessp, Sprocessp, 1, 1, 0, 483DEFUN ("processp", Fprocessp, Sprocessp, 1, 1, 0,
484 "Return t if OBJECT is a process.") 484 doc: /* Return t if OBJECT is a process. */)
485 (object) 485 (object)
486 Lisp_Object object; 486 Lisp_Object object;
487{ 487{
488 return PROCESSP (object) ? Qt : Qnil; 488 return PROCESSP (object) ? Qt : Qnil;
489} 489}
490 490
491DEFUN ("get-process", Fget_process, Sget_process, 1, 1, 0, 491DEFUN ("get-process", Fget_process, Sget_process, 1, 1, 0,
492 "Return the process named NAME, or nil if there is none.") 492 doc: /* Return the process named NAME, or nil if there is none. */)
493 (name) 493 (name)
494 register Lisp_Object name; 494 register Lisp_Object name;
495{ 495{
496 if (PROCESSP (name)) 496 if (PROCESSP (name))
@@ -500,9 +500,9 @@ DEFUN ("get-process", Fget_process, Sget_process, 1, 1, 0,
500} 500}
501 501
502DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0, 502DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0,
503 "Return the (or a) process associated with BUFFER.\n\ 503 doc: /* Return the (or a) process associated with BUFFER.
504BUFFER may be a buffer or the name of one.") 504BUFFER may be a buffer or the name of one. */)
505 (buffer) 505 (buffer)
506 register Lisp_Object buffer; 506 register Lisp_Object buffer;
507{ 507{
508 register Lisp_Object buf, tail, proc; 508 register Lisp_Object buf, tail, proc;
@@ -560,10 +560,10 @@ get_process (name)
560} 560}
561 561
562DEFUN ("delete-process", Fdelete_process, Sdelete_process, 1, 1, 0, 562DEFUN ("delete-process", Fdelete_process, Sdelete_process, 1, 1, 0,
563 "Delete PROCESS: kill it and forget about it immediately.\n\ 563 doc: /* Delete PROCESS: kill it and forget about it immediately.
564PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ 564PROCESS may be a process, a buffer, the name of a process or buffer, or
565nil, indicating the current buffer's process.") 565nil, indicating the current buffer's process. */)
566 (process) 566 (process)
567 register Lisp_Object process; 567 register Lisp_Object process;
568{ 568{
569 process = get_process (process); 569 process = get_process (process);
@@ -588,18 +588,18 @@ nil, indicating the current buffer's process.")
588} 588}
589 589
590DEFUN ("process-status", Fprocess_status, Sprocess_status, 1, 1, 0, 590DEFUN ("process-status", Fprocess_status, Sprocess_status, 1, 1, 0,
591 "Return the status of PROCESS.\n\ 591 doc: /* Return the status of PROCESS.
592The returned value is one of the following symbols:\n\ 592The returned value is one of the following symbols:
593run -- for a process that is running.\n\ 593run -- for a process that is running.
594stop -- for a process stopped but continuable.\n\ 594stop -- for a process stopped but continuable.
595exit -- for a process that has exited.\n\ 595exit -- for a process that has exited.
596signal -- for a process that has got a fatal signal.\n\ 596signal -- for a process that has got a fatal signal.
597open -- for a network stream connection that is open.\n\ 597open -- for a network stream connection that is open.
598closed -- for a network stream connection that is closed.\n\ 598closed -- for a network stream connection that is closed.
599nil -- if arg is a process name and no such process exists.\n\ 599nil -- if arg is a process name and no such process exists.
600PROCESS may be a process, a buffer, the name of a process, or\n\ 600PROCESS may be a process, a buffer, the name of a process, or
601nil, indicating the current buffer's process.") 601nil, indicating the current buffer's process. */)
602 (process) 602 (process)
603 register Lisp_Object process; 603 register Lisp_Object process;
604{ 604{
605 register struct Lisp_Process *p; 605 register struct Lisp_Process *p;
@@ -631,9 +631,9 @@ nil, indicating the current buffer's process.")
631 631
632DEFUN ("process-exit-status", Fprocess_exit_status, Sprocess_exit_status, 632DEFUN ("process-exit-status", Fprocess_exit_status, Sprocess_exit_status,
633 1, 1, 0, 633 1, 1, 0,
634 "Return the exit status of PROCESS or the signal number that killed it.\n\ 634 doc: /* Return the exit status of PROCESS or the signal number that killed it.
635If PROCESS has not yet exited or died, return 0.") 635If PROCESS has not yet exited or died, return 0. */)
636 (process) 636 (process)
637 register Lisp_Object process; 637 register Lisp_Object process;
638{ 638{
639 CHECK_PROCESS (process, 0); 639 CHECK_PROCESS (process, 0);
@@ -645,10 +645,10 @@ If PROCESS has not yet exited or died, return 0.")
645} 645}
646 646
647DEFUN ("process-id", Fprocess_id, Sprocess_id, 1, 1, 0, 647DEFUN ("process-id", Fprocess_id, Sprocess_id, 1, 1, 0,
648 "Return the process id of PROCESS.\n\ 648 doc: /* Return the process id of PROCESS.
649This is the pid of the Unix process which PROCESS uses or talks to.\n\ 649This is the pid of the Unix process which PROCESS uses or talks to.
650For a network connection, this value is nil.") 650For a network connection, this value is nil. */)
651 (process) 651 (process)
652 register Lisp_Object process; 652 register Lisp_Object process;
653{ 653{
654 CHECK_PROCESS (process, 0); 654 CHECK_PROCESS (process, 0);
@@ -656,10 +656,10 @@ For a network connection, this value is nil.")
656} 656}
657 657
658DEFUN ("process-name", Fprocess_name, Sprocess_name, 1, 1, 0, 658DEFUN ("process-name", Fprocess_name, Sprocess_name, 1, 1, 0,
659 "Return the name of PROCESS, as a string.\n\ 659 doc: /* Return the name of PROCESS, as a string.
660This is the name of the program invoked in PROCESS,\n\ 660This is the name of the program invoked in PROCESS,
661possibly modified to make it unique among process names.") 661possibly modified to make it unique among process names. */)
662 (process) 662 (process)
663 register Lisp_Object process; 663 register Lisp_Object process;
664{ 664{
665 CHECK_PROCESS (process, 0); 665 CHECK_PROCESS (process, 0);
@@ -667,11 +667,11 @@ possibly modified to make it unique among process names.")
667} 667}
668 668
669DEFUN ("process-command", Fprocess_command, Sprocess_command, 1, 1, 0, 669DEFUN ("process-command", Fprocess_command, Sprocess_command, 1, 1, 0,
670 "Return the command that was executed to start PROCESS.\n\ 670 doc: /* Return the command that was executed to start PROCESS.
671This is a list of strings, the first string being the program executed\n\ 671This is a list of strings, the first string being the program executed
672and the rest of the strings being the arguments given to it.\n\ 672and the rest of the strings being the arguments given to it.
673For a non-child channel, this is nil.") 673For a non-child channel, this is nil. */)
674 (process) 674 (process)
675 register Lisp_Object process; 675 register Lisp_Object process;
676{ 676{
677 CHECK_PROCESS (process, 0); 677 CHECK_PROCESS (process, 0);
@@ -679,10 +679,10 @@ For a non-child channel, this is nil.")
679} 679}
680 680
681DEFUN ("process-tty-name", Fprocess_tty_name, Sprocess_tty_name, 1, 1, 0, 681DEFUN ("process-tty-name", Fprocess_tty_name, Sprocess_tty_name, 1, 1, 0,
682 "Return the name of the terminal PROCESS uses, or nil if none.\n\ 682 doc: /* Return the name of the terminal PROCESS uses, or nil if none.
683This is the terminal that the process itself reads and writes on,\n\ 683This is the terminal that the process itself reads and writes on,
684not the name of the pty that Emacs uses to talk with that terminal.") 684not the name of the pty that Emacs uses to talk with that terminal. */)
685 (process) 685 (process)
686 register Lisp_Object process; 686 register Lisp_Object process;
687{ 687{
688 CHECK_PROCESS (process, 0); 688 CHECK_PROCESS (process, 0);
@@ -690,9 +690,9 @@ not the name of the pty that Emacs uses to talk with that terminal.")
690} 690}
691 691
692DEFUN ("set-process-buffer", Fset_process_buffer, Sset_process_buffer, 692DEFUN ("set-process-buffer", Fset_process_buffer, Sset_process_buffer,
693 2, 2, 0, 693 2, 2, 0,
694 "Set buffer associated with PROCESS to BUFFER (a buffer, or nil).") 694 doc: /* Set buffer associated with PROCESS to BUFFER (a buffer, or nil). */)
695 (process, buffer) 695 (process, buffer)
696 register Lisp_Object process, buffer; 696 register Lisp_Object process, buffer;
697{ 697{
698 CHECK_PROCESS (process, 0); 698 CHECK_PROCESS (process, 0);
@@ -703,10 +703,10 @@ DEFUN ("set-process-buffer", Fset_process_buffer, Sset_process_buffer,
703} 703}
704 704
705DEFUN ("process-buffer", Fprocess_buffer, Sprocess_buffer, 705DEFUN ("process-buffer", Fprocess_buffer, Sprocess_buffer,
706 1, 1, 0, 706 1, 1, 0,
707 "Return the buffer PROCESS is associated with.\n\ 707 doc: /* Return the buffer PROCESS is associated with.
708Output from PROCESS is inserted in this buffer unless PROCESS has a filter.") 708Output from PROCESS is inserted in this buffer unless PROCESS has a filter. */)
709 (process) 709 (process)
710 register Lisp_Object process; 710 register Lisp_Object process;
711{ 711{
712 CHECK_PROCESS (process, 0); 712 CHECK_PROCESS (process, 0);
@@ -714,9 +714,9 @@ Output from PROCESS is inserted in this buffer unless PROCESS has a filter.")
714} 714}
715 715
716DEFUN ("process-mark", Fprocess_mark, Sprocess_mark, 716DEFUN ("process-mark", Fprocess_mark, Sprocess_mark,
717 1, 1, 0, 717 1, 1, 0,
718 "Return the marker for the end of the last output from PROCESS.") 718 doc: /* Return the marker for the end of the last output from PROCESS. */)
719 (process) 719 (process)
720 register Lisp_Object process; 720 register Lisp_Object process;
721{ 721{
722 CHECK_PROCESS (process, 0); 722 CHECK_PROCESS (process, 0);
@@ -724,14 +724,14 @@ DEFUN ("process-mark", Fprocess_mark, Sprocess_mark,
724} 724}
725 725
726DEFUN ("set-process-filter", Fset_process_filter, Sset_process_filter, 726DEFUN ("set-process-filter", Fset_process_filter, Sset_process_filter,
727 2, 2, 0, 727 2, 2, 0,
728 "Give PROCESS the filter function FILTER; nil means no filter.\n\ 728 doc: /* Give PROCESS the filter function FILTER; nil means no filter.
729t means stop accepting output from the process.\n\ 729t means stop accepting output from the process.
730When a process has a filter, each time it does output\n\ 730When a process has a filter, each time it does output
731the entire string of output is passed to the filter.\n\ 731the entire string of output is passed to the filter.
732The filter gets two arguments: the process and the string of output.\n\ 732The filter gets two arguments: the process and the string of output.
733If the process has a filter, its buffer is not used for output.") 733If the process has a filter, its buffer is not used for output. */)
734 (process, filter) 734 (process, filter)
735 register Lisp_Object process, filter; 735 register Lisp_Object process, filter;
736{ 736{
737 struct Lisp_Process *p; 737 struct Lisp_Process *p;
@@ -766,10 +766,10 @@ If the process has a filter, its buffer is not used for output.")
766} 766}
767 767
768DEFUN ("process-filter", Fprocess_filter, Sprocess_filter, 768DEFUN ("process-filter", Fprocess_filter, Sprocess_filter,
769 1, 1, 0, 769 1, 1, 0,
770 "Returns the filter function of PROCESS; nil if none.\n\ 770 doc: /* Returns the filter function of PROCESS; nil if none.
771See `set-process-filter' for more info on filter functions.") 771See `set-process-filter' for more info on filter functions. */)
772 (process) 772 (process)
773 register Lisp_Object process; 773 register Lisp_Object process;
774{ 774{
775 CHECK_PROCESS (process, 0); 775 CHECK_PROCESS (process, 0);
@@ -777,11 +777,11 @@ See `set-process-filter' for more info on filter functions.")
777} 777}
778 778
779DEFUN ("set-process-sentinel", Fset_process_sentinel, Sset_process_sentinel, 779DEFUN ("set-process-sentinel", Fset_process_sentinel, Sset_process_sentinel,
780 2, 2, 0, 780 2, 2, 0,
781 "Give PROCESS the sentinel SENTINEL; nil for none.\n\ 781 doc: /* Give PROCESS the sentinel SENTINEL; nil for none.
782The sentinel is called as a function when the process changes state.\n\ 782The sentinel is called as a function when the process changes state.
783It gets two arguments: the process, and a string describing the change.") 783It gets two arguments: the process, and a string describing the change. */)
784 (process, sentinel) 784 (process, sentinel)
785 register Lisp_Object process, sentinel; 785 register Lisp_Object process, sentinel;
786{ 786{
787 CHECK_PROCESS (process, 0); 787 CHECK_PROCESS (process, 0);
@@ -790,10 +790,10 @@ It gets two arguments: the process, and a string describing the change.")
790} 790}
791 791
792DEFUN ("process-sentinel", Fprocess_sentinel, Sprocess_sentinel, 792DEFUN ("process-sentinel", Fprocess_sentinel, Sprocess_sentinel,
793 1, 1, 0, 793 1, 1, 0,
794 "Return the sentinel of PROCESS; nil if none.\n\ 794 doc: /* Return the sentinel of PROCESS; nil if none.
795See `set-process-sentinel' for more info on sentinels.") 795See `set-process-sentinel' for more info on sentinels. */)
796 (process) 796 (process)
797 register Lisp_Object process; 797 register Lisp_Object process;
798{ 798{
799 CHECK_PROCESS (process, 0); 799 CHECK_PROCESS (process, 0);
@@ -801,9 +801,9 @@ See `set-process-sentinel' for more info on sentinels.")
801} 801}
802 802
803DEFUN ("set-process-window-size", Fset_process_window_size, 803DEFUN ("set-process-window-size", Fset_process_window_size,
804 Sset_process_window_size, 3, 3, 0, 804 Sset_process_window_size, 3, 3, 0,
805 "Tell PROCESS that it has logical window size HEIGHT and WIDTH.") 805 doc: /* Tell PROCESS that it has logical window size HEIGHT and WIDTH. */)
806 (process, height, width) 806 (process, height, width)
807 register Lisp_Object process, height, width; 807 register Lisp_Object process, height, width;
808{ 808{
809 CHECK_PROCESS (process, 0); 809 CHECK_PROCESS (process, 0);
@@ -819,23 +819,23 @@ DEFUN ("set-process-window-size", Fset_process_window_size,
819} 819}
820 820
821DEFUN ("set-process-inherit-coding-system-flag", 821DEFUN ("set-process-inherit-coding-system-flag",
822 Fset_process_inherit_coding_system_flag, 822 Fset_process_inherit_coding_system_flag,
823 Sset_process_inherit_coding_system_flag, 2, 2, 0, 823 Sset_process_inherit_coding_system_flag, 2, 2, 0,
824 "Determine whether buffer of PROCESS will inherit coding-system.\n\ 824 doc: /* Determine whether buffer of PROCESS will inherit coding-system.
825If the second argument FLAG is non-nil, then the variable\n\ 825If the second argument FLAG is non-nil, then the variable
826`buffer-file-coding-system' of the buffer associated with PROCESS\n\ 826`buffer-file-coding-system' of the buffer associated with PROCESS
827will be bound to the value of the coding system used to decode\n\ 827will be bound to the value of the coding system used to decode
828the process output.\n\ 828the process output.
829\n\ 829
830This is useful when the coding system specified for the process buffer\n\ 830This is useful when the coding system specified for the process buffer
831leaves either the character code conversion or the end-of-line conversion\n\ 831leaves either the character code conversion or the end-of-line conversion
832unspecified, or if the coding system used to decode the process output\n\ 832unspecified, or if the coding system used to decode the process output
833is more appropriate for saving the process buffer.\n\ 833is more appropriate for saving the process buffer.
834\n\ 834
835Binding the variable `inherit-process-coding-system' to non-nil before\n\ 835Binding the variable `inherit-process-coding-system' to non-nil before
836starting the process is an alternative way of setting the inherit flag\n\ 836starting the process is an alternative way of setting the inherit flag
837for the process which will run.") 837for the process which will run. */)
838 (process, flag) 838 (process, flag)
839 register Lisp_Object process, flag; 839 register Lisp_Object process, flag;
840{ 840{
841 CHECK_PROCESS (process, 0); 841 CHECK_PROCESS (process, 0);
@@ -844,13 +844,13 @@ for the process which will run.")
844} 844}
845 845
846DEFUN ("process-inherit-coding-system-flag", 846DEFUN ("process-inherit-coding-system-flag",
847 Fprocess_inherit_coding_system_flag, Sprocess_inherit_coding_system_flag, 847 Fprocess_inherit_coding_system_flag, Sprocess_inherit_coding_system_flag,
848 1, 1, 0, 848 1, 1, 0,
849 "Return the value of inherit-coding-system flag for PROCESS.\n\ 849 doc: /* Return the value of inherit-coding-system flag for PROCESS.
850If this flag is t, `buffer-file-coding-system' of the buffer\n\ 850If this flag is t, `buffer-file-coding-system' of the buffer
851associated with PROCESS will inherit the coding system used to decode\n\ 851associated with PROCESS will inherit the coding system used to decode
852the process output.") 852the process output. */)
853 (process) 853 (process)
854 register Lisp_Object process; 854 register Lisp_Object process;
855{ 855{
856 CHECK_PROCESS (process, 0); 856 CHECK_PROCESS (process, 0);
@@ -858,11 +858,11 @@ the process output.")
858} 858}
859 859
860DEFUN ("process-kill-without-query", Fprocess_kill_without_query, 860DEFUN ("process-kill-without-query", Fprocess_kill_without_query,
861 Sprocess_kill_without_query, 1, 2, 0, 861 Sprocess_kill_without_query, 1, 2, 0,
862 "Say no query needed if PROCESS is running when Emacs is exited.\n\ 862 doc: /* Say no query needed if PROCESS is running when Emacs is exited.
863Optional second argument if non-nil says to require a query.\n\ 863Optional second argument if non-nil says to require a query.
864Value is t if a query was formerly required.") 864Value is t if a query was formerly required. */)
865 (process, value) 865 (process, value)
866 register Lisp_Object process, value; 866 register Lisp_Object process, value;
867{ 867{
868 Lisp_Object tem; 868 Lisp_Object tem;
@@ -875,10 +875,10 @@ Value is t if a query was formerly required.")
875} 875}
876 876
877DEFUN ("process-contact", Fprocess_contact, Sprocess_contact, 877DEFUN ("process-contact", Fprocess_contact, Sprocess_contact,
878 1, 1, 0, 878 1, 1, 0,
879 "Return the contact info of PROCESS; t for a real child.\n\ 879 doc: /* Return the contact info of PROCESS; t for a real child.
880For a net connection, the value is a cons cell of the form (HOST SERVICE).") 880For a net connection, the value is a cons cell of the form (HOST SERVICE). */)
881 (process) 881 (process)
882 register Lisp_Object process; 882 register Lisp_Object process;
883{ 883{
884 CHECK_PROCESS (process, 0); 884 CHECK_PROCESS (process, 0);
@@ -888,10 +888,10 @@ For a net connection, the value is a cons cell of the form (HOST SERVICE).")
888#if 0 /* Turned off because we don't currently record this info 888#if 0 /* Turned off because we don't currently record this info
889 in the process. Perhaps add it. */ 889 in the process. Perhaps add it. */
890DEFUN ("process-connection", Fprocess_connection, Sprocess_connection, 1, 1, 0, 890DEFUN ("process-connection", Fprocess_connection, Sprocess_connection, 1, 1, 0,
891 "Return the connection type of PROCESS.\n\ 891 doc: /* Return the connection type of PROCESS.
892The value is nil for a pipe, t or `pty' for a pty, or `stream' for\n\ 892The value is nil for a pipe, t or `pty' for a pty, or `stream' for
893a socket connection.") 893a socket connection. */)
894 (process) 894 (process)
895 Lisp_Object process; 895 Lisp_Object process;
896{ 896{
897 return XPROCESS (process)->type; 897 return XPROCESS (process)->type;
@@ -1015,10 +1015,10 @@ Proc Status Buffer Tty Command\n\
1015} 1015}
1016 1016
1017DEFUN ("list-processes", Flist_processes, Slist_processes, 0, 0, "", 1017DEFUN ("list-processes", Flist_processes, Slist_processes, 0, 0, "",
1018 "Display a list of all processes.\n\ 1018 doc: /* Display a list of all processes.
1019Any process listed as exited or signaled is actually eliminated\n\ 1019Any process listed as exited or signaled is actually eliminated
1020after the listing is made.") 1020after the listing is made. */)
1021 () 1021 ()
1022{ 1022{
1023 internal_with_output_to_temp_buffer ("*Process List*", 1023 internal_with_output_to_temp_buffer ("*Process List*",
1024 list_processes_1, Qnil); 1024 list_processes_1, Qnil);
@@ -1026,8 +1026,8 @@ after the listing is made.")
1026} 1026}
1027 1027
1028DEFUN ("process-list", Fprocess_list, Sprocess_list, 0, 0, 0, 1028DEFUN ("process-list", Fprocess_list, Sprocess_list, 0, 0, 0,
1029 "Return a list of all processes.") 1029 doc: /* Return a list of all processes. */)
1030 () 1030 ()
1031{ 1031{
1032 return Fmapcar (Qcdr, Vprocess_alist); 1032 return Fmapcar (Qcdr, Vprocess_alist);
1033} 1033}
@@ -1037,16 +1037,16 @@ DEFUN ("process-list", Fprocess_list, Sprocess_list, 0, 0, 0,
1037static Lisp_Object start_process_unwind (); 1037static Lisp_Object start_process_unwind ();
1038 1038
1039DEFUN ("start-process", Fstart_process, Sstart_process, 3, MANY, 0, 1039DEFUN ("start-process", Fstart_process, Sstart_process, 3, MANY, 0,
1040 "Start a program in a subprocess. Return the process object for it.\n\ 1040 doc: /* Start a program in a subprocess. Return the process object for it.
1041NAME is name for process. It is modified if necessary to make it unique.\n\ 1041NAME is name for process. It is modified if necessary to make it unique.
1042BUFFER is the buffer or (buffer-name) to associate with the process.\n\ 1042BUFFER is the buffer or (buffer-name) to associate with the process.
1043 Process output goes at end of that buffer, unless you specify\n\ 1043 Process output goes at end of that buffer, unless you specify
1044 an output stream or filter function to handle the output.\n\ 1044 an output stream or filter function to handle the output.
1045 BUFFER may be also nil, meaning that this process is not associated\n\ 1045 BUFFER may be also nil, meaning that this process is not associated
1046 with any buffer.\n\ 1046 with any buffer.
1047Third arg is program file name. It is searched for in PATH.\n\ 1047Third arg is program file name. It is searched for in PATH.
1048Remaining arguments are strings to give program as arguments.") 1048Remaining arguments are strings to give program as arguments. */)
1049 (nargs, args) 1049 (nargs, args)
1050 int nargs; 1050 int nargs;
1051 register Lisp_Object *args; 1051 register Lisp_Object *args;
1052{ 1052{
@@ -1744,20 +1744,20 @@ create_process (process, new_argv, current_dir)
1744 1744
1745DEFUN ("open-network-stream", Fopen_network_stream, Sopen_network_stream, 1745DEFUN ("open-network-stream", Fopen_network_stream, Sopen_network_stream,
1746 4, 4, 0, 1746 4, 4, 0,
1747 "Open a TCP connection for a service to a host.\n\ 1747 doc: /* Open a TCP connection for a service to a host.
1748Returns a subprocess-object to represent the connection.\n\ 1748Returns a subprocess-object to represent the connection.
1749Input and output work as for subprocesses; `delete-process' closes it.\n\ 1749Input and output work as for subprocesses; `delete-process' closes it.
1750Args are NAME BUFFER HOST SERVICE.\n\ 1750Args are NAME BUFFER HOST SERVICE.
1751NAME is name for process. It is modified if necessary to make it unique.\n\ 1751NAME is name for process. It is modified if necessary to make it unique.
1752BUFFER is the buffer (or buffer-name) to associate with the process.\n\ 1752BUFFER is the buffer (or buffer-name) to associate with the process.
1753 Process output goes at end of that buffer, unless you specify\n\ 1753 Process output goes at end of that buffer, unless you specify
1754 an output stream or filter function to handle the output.\n\ 1754 an output stream or filter function to handle the output.
1755 BUFFER may be also nil, meaning that this process is not associated\n\ 1755 BUFFER may be also nil, meaning that this process is not associated
1756 with any buffer\n\ 1756 with any buffer
1757Third arg is name of the host to connect to, or its IP address.\n\ 1757Third arg is name of the host to connect to, or its IP address.
1758Fourth arg SERVICE is name of the service desired, or an integer\n\ 1758Fourth arg SERVICE is name of the service desired, or an integer
1759 specifying a port number to connect to.") 1759specifying a port number to connect to. */)
1760 (name, buffer, host, service) 1760 (name, buffer, host, service)
1761 Lisp_Object name, buffer, host, service; 1761 Lisp_Object name, buffer, host, service;
1762{ 1762{
1763 Lisp_Object proc; 1763 Lisp_Object proc;
@@ -2236,16 +2236,16 @@ close_process_descs ()
2236} 2236}
2237 2237
2238DEFUN ("accept-process-output", Faccept_process_output, Saccept_process_output, 2238DEFUN ("accept-process-output", Faccept_process_output, Saccept_process_output,
2239 0, 3, 0, 2239 0, 3, 0,
2240 "Allow any pending output from subprocesses to be read by Emacs.\n\ 2240 doc: /* Allow any pending output from subprocesses to be read by Emacs.
2241It is read into the process' buffers or given to their filter functions.\n\ 2241It is read into the process' buffers or given to their filter functions.
2242Non-nil arg PROCESS means do not return until some output has been received\n\ 2242Non-nil arg PROCESS means do not return until some output has been received
2243from PROCESS.\n\ 2243from PROCESS.
2244Non-nil second arg TIMEOUT and third arg TIMEOUT-MSECS are number of\n\ 2244Non-nil second arg TIMEOUT and third arg TIMEOUT-MSECS are number of
2245seconds and microseconds to wait; return after that much time whether\n\ 2245seconds and microseconds to wait; return after that much time whether
2246or not there is input.\n\ 2246or not there is input.
2247Return non-nil iff we received any output before the timeout expired.") 2247Return non-nil iff we received any output before the timeout expired. */)
2248 (process, timeout, timeout_msecs) 2248 (process, timeout, timeout_msecs)
2249 register Lisp_Object process, timeout, timeout_msecs; 2249 register Lisp_Object process, timeout, timeout_msecs;
2250{ 2250{
2251 int seconds; 2251 int seconds;
@@ -3210,9 +3210,9 @@ read_process_output (proc, channel)
3210 3210
3211DEFUN ("waiting-for-user-input-p", Fwaiting_for_user_input_p, Swaiting_for_user_input_p, 3211DEFUN ("waiting-for-user-input-p", Fwaiting_for_user_input_p, Swaiting_for_user_input_p,
3212 0, 0, 0, 3212 0, 0, 0,
3213 "Returns non-nil if emacs is waiting for input from the user.\n\ 3213 doc: /* Returns non-nil if emacs is waiting for input from the user.
3214This is intended for use by asynchronous process output filters and sentinels.") 3214This is intended for use by asynchronous process output filters and sentinels. */)
3215 () 3215 ()
3216{ 3216{
3217 return (waiting_for_user_input_p ? Qt : Qnil); 3217 return (waiting_for_user_input_p ? Qt : Qnil);
3218} 3218}
@@ -3523,15 +3523,15 @@ send_process (proc, buf, len, object)
3523} 3523}
3524 3524
3525DEFUN ("process-send-region", Fprocess_send_region, Sprocess_send_region, 3525DEFUN ("process-send-region", Fprocess_send_region, Sprocess_send_region,
3526 3, 3, 0, 3526 3, 3, 0,
3527 "Send current contents of region as input to PROCESS.\n\ 3527 doc: /* Send current contents of region as input to PROCESS.
3528PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ 3528PROCESS may be a process, a buffer, the name of a process or buffer, or
3529nil, indicating the current buffer's process.\n\ 3529nil, indicating the current buffer's process.
3530Called from program, takes three arguments, PROCESS, START and END.\n\ 3530Called from program, takes three arguments, PROCESS, START and END.
3531If the region is more than 500 characters long,\n\ 3531If the region is more than 500 characters long,
3532it is sent in several bunches. This may happen even for shorter regions.\n\ 3532it is sent in several bunches. This may happen even for shorter regions.
3533Output from processes can arrive in between bunches.") 3533Output from processes can arrive in between bunches. */)
3534 (process, start, end) 3534 (process, start, end)
3535 Lisp_Object process, start, end; 3535 Lisp_Object process, start, end;
3536{ 3536{
3537 Lisp_Object proc; 3537 Lisp_Object proc;
@@ -3552,14 +3552,14 @@ Output from processes can arrive in between bunches.")
3552} 3552}
3553 3553
3554DEFUN ("process-send-string", Fprocess_send_string, Sprocess_send_string, 3554DEFUN ("process-send-string", Fprocess_send_string, Sprocess_send_string,
3555 2, 2, 0, 3555 2, 2, 0,
3556 "Send PROCESS the contents of STRING as input.\n\ 3556 doc: /* Send PROCESS the contents of STRING as input.
3557PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ 3557PROCESS may be a process, a buffer, the name of a process or buffer, or
3558nil, indicating the current buffer's process.\n\ 3558nil, indicating the current buffer's process.
3559If STRING is more than 500 characters long,\n\ 3559If STRING is more than 500 characters long,
3560it is sent in several bunches. This may happen even for shorter strings.\n\ 3560it is sent in several bunches. This may happen even for shorter strings.
3561Output from processes can arrive in between bunches.") 3561Output from processes can arrive in between bunches. */)
3562 (process, string) 3562 (process, string)
3563 Lisp_Object process, string; 3563 Lisp_Object process, string;
3564{ 3564{
3565 Lisp_Object proc; 3565 Lisp_Object proc;
@@ -3572,10 +3572,10 @@ Output from processes can arrive in between bunches.")
3572 3572
3573DEFUN ("process-running-child-p", Fprocess_running_child_p, 3573DEFUN ("process-running-child-p", Fprocess_running_child_p,
3574 Sprocess_running_child_p, 0, 1, 0, 3574 Sprocess_running_child_p, 0, 1, 0,
3575 "Return t if PROCESS has given the terminal to a child.\n\ 3575 doc: /* Return t if PROCESS has given the terminal to a child.
3576If the operating system does not make it possible to find out,\n\ 3576If the operating system does not make it possible to find out,
3577return t unconditionally.") 3577return t unconditionally. */)
3578 (process) 3578 (process)
3579 Lisp_Object process; 3579 Lisp_Object process;
3580{ 3580{
3581 /* Initialize in case ioctl doesn't exist or gives an error, 3581 /* Initialize in case ioctl doesn't exist or gives an error,
@@ -3832,18 +3832,18 @@ process_send_signal (process, signo, current_group, nomsg)
3832} 3832}
3833 3833
3834DEFUN ("interrupt-process", Finterrupt_process, Sinterrupt_process, 0, 2, 0, 3834DEFUN ("interrupt-process", Finterrupt_process, Sinterrupt_process, 0, 2, 0,
3835 "Interrupt process PROCESS.\n\ 3835 doc: /* Interrupt process PROCESS.
3836PROCESS may be a process, a buffer, or the name of a process or buffer.\n\ 3836PROCESS may be a process, a buffer, or the name of a process or buffer.
3837nil or no arg means current buffer's process.\n\ 3837nil or no arg means current buffer's process.
3838Second arg CURRENT-GROUP non-nil means send signal to\n\ 3838Second arg CURRENT-GROUP non-nil means send signal to
3839the current process-group of the process's controlling terminal\n\ 3839the current process-group of the process's controlling terminal
3840rather than to the process's own process group.\n\ 3840rather than to the process's own process group.
3841If the process is a shell, this means interrupt current subjob\n\ 3841If the process is a shell, this means interrupt current subjob
3842rather than the shell.\n\ 3842rather than the shell.
3843\n\ 3843
3844If CURRENT-GROUP is `lambda', and if the shell owns the terminal,\n\ 3844If CURRENT-GROUP is `lambda', and if the shell owns the terminal,
3845don't send the signal.") 3845don't send the signal. */)
3846 (process, current_group) 3846 (process, current_group)
3847 Lisp_Object process, current_group; 3847 Lisp_Object process, current_group;
3848{ 3848{
3849 process_send_signal (process, SIGINT, current_group, 0); 3849 process_send_signal (process, SIGINT, current_group, 0);
@@ -3851,9 +3851,9 @@ don't send the signal.")
3851} 3851}
3852 3852
3853DEFUN ("kill-process", Fkill_process, Skill_process, 0, 2, 0, 3853DEFUN ("kill-process", Fkill_process, Skill_process, 0, 2, 0,
3854 "Kill process PROCESS. May be process or name of one.\n\ 3854 doc: /* Kill process PROCESS. May be process or name of one.
3855See function `interrupt-process' for more details on usage.") 3855See function `interrupt-process' for more details on usage. */)
3856 (process, current_group) 3856 (process, current_group)
3857 Lisp_Object process, current_group; 3857 Lisp_Object process, current_group;
3858{ 3858{
3859 process_send_signal (process, SIGKILL, current_group, 0); 3859 process_send_signal (process, SIGKILL, current_group, 0);
@@ -3861,9 +3861,9 @@ See function `interrupt-process' for more details on usage.")
3861} 3861}
3862 3862
3863DEFUN ("quit-process", Fquit_process, Squit_process, 0, 2, 0, 3863DEFUN ("quit-process", Fquit_process, Squit_process, 0, 2, 0,
3864 "Send QUIT signal to process PROCESS. May be process or name of one.\n\ 3864 doc: /* Send QUIT signal to process PROCESS. May be process or name of one.
3865See function `interrupt-process' for more details on usage.") 3865See function `interrupt-process' for more details on usage. */)
3866 (process, current_group) 3866 (process, current_group)
3867 Lisp_Object process, current_group; 3867 Lisp_Object process, current_group;
3868{ 3868{
3869 process_send_signal (process, SIGQUIT, current_group, 0); 3869 process_send_signal (process, SIGQUIT, current_group, 0);
@@ -3871,9 +3871,9 @@ See function `interrupt-process' for more details on usage.")
3871} 3871}
3872 3872
3873DEFUN ("stop-process", Fstop_process, Sstop_process, 0, 2, 0, 3873DEFUN ("stop-process", Fstop_process, Sstop_process, 0, 2, 0,
3874 "Stop process PROCESS. May be process or name of one.\n\ 3874 doc: /* Stop process PROCESS. May be process or name of one.
3875See function `interrupt-process' for more details on usage.") 3875See function `interrupt-process' for more details on usage. */)
3876 (process, current_group) 3876 (process, current_group)
3877 Lisp_Object process, current_group; 3877 Lisp_Object process, current_group;
3878{ 3878{
3879#ifndef SIGTSTP 3879#ifndef SIGTSTP
@@ -3885,9 +3885,9 @@ See function `interrupt-process' for more details on usage.")
3885} 3885}
3886 3886
3887DEFUN ("continue-process", Fcontinue_process, Scontinue_process, 0, 2, 0, 3887DEFUN ("continue-process", Fcontinue_process, Scontinue_process, 0, 2, 0,
3888 "Continue process PROCESS. May be process or name of one.\n\ 3888 doc: /* Continue process PROCESS. May be process or name of one.
3889See function `interrupt-process' for more details on usage.") 3889See function `interrupt-process' for more details on usage. */)
3890 (process, current_group) 3890 (process, current_group)
3891 Lisp_Object process, current_group; 3891 Lisp_Object process, current_group;
3892{ 3892{
3893#ifdef SIGCONT 3893#ifdef SIGCONT
@@ -3899,11 +3899,11 @@ See function `interrupt-process' for more details on usage.")
3899} 3899}
3900 3900
3901DEFUN ("signal-process", Fsignal_process, Ssignal_process, 3901DEFUN ("signal-process", Fsignal_process, Ssignal_process,
3902 2, 2, "nProcess number: \nnSignal code: ", 3902 2, 2, "nProcess number: \nnSignal code: ",
3903 "Send the process with process id PID the signal with code SIGCODE.\n\ 3903 doc: /* Send the process with process id PID the signal with code SIGCODE.
3904PID must be an integer. The process need not be a child of this Emacs.\n\ 3904PID must be an integer. The process need not be a child of this Emacs.
3905SIGCODE may be an integer, or a symbol whose name is a signal name.") 3905SIGCODE may be an integer, or a symbol whose name is a signal name. */)
3906 (pid, sigcode) 3906 (pid, sigcode)
3907 Lisp_Object pid, sigcode; 3907 Lisp_Object pid, sigcode;
3908{ 3908{
3909 CHECK_NUMBER (pid, 0); 3909 CHECK_NUMBER (pid, 0);
@@ -4023,14 +4023,14 @@ SIGCODE may be an integer, or a symbol whose name is a signal name.")
4023} 4023}
4024 4024
4025DEFUN ("process-send-eof", Fprocess_send_eof, Sprocess_send_eof, 0, 1, 0, 4025DEFUN ("process-send-eof", Fprocess_send_eof, Sprocess_send_eof, 0, 1, 0,
4026 "Make PROCESS see end-of-file in its input.\n\ 4026 doc: /* Make PROCESS see end-of-file in its input.
4027EOF comes after any text already sent to it.\n\ 4027EOF comes after any text already sent to it.
4028PROCESS may be a process, a buffer, the name of a process or buffer, or\n\ 4028PROCESS may be a process, a buffer, the name of a process or buffer, or
4029nil, indicating the current buffer's process.\n\ 4029nil, indicating the current buffer's process.
4030If PROCESS is a network connection, or is a process communicating\n\ 4030If PROCESS is a network connection, or is a process communicating
4031through a pipe (as opposed to a pty), then you cannot send any more\n\ 4031through a pipe (as opposed to a pty), then you cannot send any more
4032text to PROCESS after you call this function.") 4032text to PROCESS after you call this function. */)
4033 (process) 4033 (process)
4034 Lisp_Object process; 4034 Lisp_Object process;
4035{ 4035{
4036 Lisp_Object proc; 4036 Lisp_Object proc;
@@ -4510,10 +4510,10 @@ status_notify ()
4510 4510
4511DEFUN ("set-process-coding-system", Fset_process_coding_system, 4511DEFUN ("set-process-coding-system", Fset_process_coding_system,
4512 Sset_process_coding_system, 1, 3, 0, 4512 Sset_process_coding_system, 1, 3, 0,
4513 "Set coding systems of PROCESS to DECODING and ENCODING.\n\ 4513 doc: /* Set coding systems of PROCESS to DECODING and ENCODING.
4514DECODING will be used to decode subprocess output and ENCODING to\n\ 4514DECODING will be used to decode subprocess output and ENCODING to
4515encode subprocess input.") 4515encode subprocess input. */)
4516 (proc, decoding, encoding) 4516 (proc, decoding, encoding)
4517 register Lisp_Object proc, decoding, encoding; 4517 register Lisp_Object proc, decoding, encoding;
4518{ 4518{
4519 register struct Lisp_Process *p; 4519 register struct Lisp_Process *p;
@@ -4537,8 +4537,8 @@ encode subprocess input.")
4537 4537
4538DEFUN ("process-coding-system", 4538DEFUN ("process-coding-system",
4539 Fprocess_coding_system, Sprocess_coding_system, 1, 1, 0, 4539 Fprocess_coding_system, Sprocess_coding_system, 1, 1, 0,
4540 "Return a cons of coding systems for decoding and encoding of PROCESS.") 4540 doc: /* Return a cons of coding systems for decoding and encoding of PROCESS. */)
4541 (proc) 4541 (proc)
4542 register Lisp_Object proc; 4542 register Lisp_Object proc;
4543{ 4543{
4544 CHECK_PROCESS (proc, 0); 4544 CHECK_PROCESS (proc, 0);
@@ -4660,17 +4660,17 @@ syms_of_process ()
4660 staticpro (&Vprocess_alist); 4660 staticpro (&Vprocess_alist);
4661 4661
4662 DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes, 4662 DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes,
4663 "*Non-nil means delete processes immediately when they exit.\n\ 4663 doc: /* *Non-nil means delete processes immediately when they exit.
4664nil means don't delete them until `list-processes' is run."); 4664nil means don't delete them until `list-processes' is run. */);
4665 4665
4666 delete_exited_processes = 1; 4666 delete_exited_processes = 1;
4667 4667
4668 DEFVAR_LISP ("process-connection-type", &Vprocess_connection_type, 4668 DEFVAR_LISP ("process-connection-type", &Vprocess_connection_type,
4669 "Control type of device used to communicate with subprocesses.\n\ 4669 doc: /* Control type of device used to communicate with subprocesses.
4670Values are nil to use a pipe, or t or `pty' to use a pty.\n\ 4670Values are nil to use a pipe, or t or `pty' to use a pty.
4671The value has no effect if the system has no ptys or if all ptys are busy:\n\ 4671The value has no effect if the system has no ptys or if all ptys are busy:
4672then a pipe is used in any case.\n\ 4672then a pipe is used in any case.
4673The value takes effect when `start-process' is called."); 4673The value takes effect when `start-process' is called. */);
4674 Vprocess_connection_type = Qt; 4674 Vprocess_connection_type = Qt;
4675 4675
4676 defsubr (&Sprocessp); 4676 defsubr (&Sprocessp);
@@ -4972,8 +4972,8 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
4972/* Don't confuse make-docfile by having two doc strings for this function. 4972/* Don't confuse make-docfile by having two doc strings for this function.
4973 make-docfile does not pay attention to #if, for good reason! */ 4973 make-docfile does not pay attention to #if, for good reason! */
4974DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0, 4974DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0,
4975 0) 4975 0)
4976 (name) 4976 (name)
4977 register Lisp_Object name; 4977 register Lisp_Object name;
4978{ 4978{
4979 return Qnil; 4979 return Qnil;
@@ -4982,10 +4982,10 @@ DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0,
4982 /* Don't confuse make-docfile by having two doc strings for this function. 4982 /* Don't confuse make-docfile by having two doc strings for this function.
4983 make-docfile does not pay attention to #if, for good reason! */ 4983 make-docfile does not pay attention to #if, for good reason! */
4984DEFUN ("process-inherit-coding-system-flag", 4984DEFUN ("process-inherit-coding-system-flag",
4985 Fprocess_inherit_coding_system_flag, Sprocess_inherit_coding_system_flag, 4985 Fprocess_inherit_coding_system_flag, Sprocess_inherit_coding_system_flag,
4986 1, 1, 0, 4986 1, 1, 0,
4987 0) 4987 0)
4988 (process) 4988 (process)
4989 register Lisp_Object process; 4989 register Lisp_Object process;
4990{ 4990{
4991 /* Ignore the argument and return the value of 4991 /* Ignore the argument and return the value of