# HG changeset patch # User Richard M. Stallman # Date 792771829 0 # Node ID 54a76e0b97ecec7ffd6a819d1ae61d0b9dbe8845 # Parent 6977bff3ff38a2556cee364420a971cfd78190bf (Fstart_process): Make process marker point into proc buf. diff -r 6977bff3ff38 -r 54a76e0b97ec src/process.c --- a/src/process.c Tue Feb 14 14:22:29 1995 +0000 +++ b/src/process.c Tue Feb 14 14:23:49 1995 +0000 @@ -1035,9 +1035,9 @@ GCPRO2 (buffer, current_dir); - current_dir = - expand_and_dir_to_file - (Funhandled_file_name_directory (current_dir), Qnil); + current_dir + = expand_and_dir_to_file (Funhandled_file_name_directory (current_dir), + Qnil); if (NILP (Ffile_accessible_directory_p (current_dir))) report_file_error ("Setting current directory", Fcons (current_buffer->directory, Qnil)); @@ -1117,6 +1117,11 @@ XPROCESS (proc)->filter = Qnil; XPROCESS (proc)->command = Flist (nargs - 2, args + 2); + /* Make the process marker point into the process buffer (if any). */ + if (!NILP (buffer)) + Fset_marker (XPROCESS (proc)->mark, + make_number (BUF_ZV (XBUFFER (buffer))), buffer); + create_process (proc, new_argv, current_dir); return unbind_to (count, proc);