X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fprocess.c;h=127fc17f93dd605ff1fde6fcde0988efd8c08bd6;hb=27d956d0eb66388b5ba8c31e1764c625fdd36b7b;hp=f555019cf2453f3f9b4404889cbd6a78b5f245bc;hpb=042cabb13b0419d8aa5cfac9e087d78730d1dbc7;p=chise%2Fxemacs-chise.git.1 diff --git a/src/process.c b/src/process.c index f555019..127fc17 100644 --- a/src/process.c +++ b/src/process.c @@ -1,5 +1,5 @@ /* Asynchronous subprocess control for XEmacs. - Copyright (C) 1985, 1986, 1987, 1988, 1992, 1993, 1994, 1995 + Copyright (C) 1985, 1986, 1987, 1988, 1992, 1993, 1994, 1995, 2003 Free Software Foundation, Inc. Copyright (C) 1995 Sun Microsystems, Inc. Copyright (C) 1995, 1996 Ben Wing. @@ -352,7 +352,7 @@ get_process (Lisp_Object name) #endif /* This may be called during a GC from process_send_signal() from - kill_buffer_processes() if emacs decides to abort(). */ + kill_buffer_processes() if emacs decides to ABORT(). */ if (PROCESSP (name)) return name; else if (STRINGP (name)) @@ -564,8 +564,8 @@ BUFFER is the buffer or (buffer-name) to associate with the process. with any buffer Third arg is program file name. It is searched for as in the shell. Remaining arguments are strings to give program as arguments. -INCODE and OUTCODE specify the coding-system objects used in input/output - from/to the process. +If bound, `coding-system-for-read' and `coding-system-for-write' specify + the coding-system objects used in input from and output to the process. */ (int nargs, Lisp_Object *args)) { @@ -573,6 +573,7 @@ INCODE and OUTCODE specify the coding-system objects used in input/output /* !!#### This function has not been Mule-ized */ Lisp_Object buffer, name, program, process, current_dir; Lisp_Object tem; + int i; int speccount = specpdl_depth (); struct gcpro gcpro1, gcpro2, gcpro3; @@ -589,6 +590,8 @@ INCODE and OUTCODE specify the coding-system objects used in input/output CHECK_STRING (name); CHECK_STRING (program); + for (i = 3; i < nargs; ++i) + CHECK_STRING (args[i]); /* Make sure that the child will be able to chdir to the current buffer's current directory, or its unhandled equivalent. We @@ -756,8 +759,8 @@ against lost packets. event_stream_select_process (XPROCESS (process)); - UNGCPRO; NUNGCPRO; + UNGCPRO; return process; }