diff src/process.c @ 10744:54a76e0b97ec

(Fstart_process): Make process marker point into proc buf.
author Richard M. Stallman <rms@gnu.org>
date Tue, 14 Feb 1995 14:23:49 +0000
parents dcae4394587d
children 413d44c0bd41
line wrap: on
line diff
--- 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);