]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fstart_process): Make process marker point into proc buf.
authorRichard M. Stallman <rms@gnu.org>
Tue, 14 Feb 1995 14:23:49 +0000 (14:23 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 14 Feb 1995 14:23:49 +0000 (14:23 +0000)
src/process.c

index 3f93cd807eb7341597e75994d10e7f9c1b7ca2ef..67d1609ad9de9845d4ef847850904e95d2e58604 100644 (file)
@@ -1035,9 +1035,9 @@ Remaining arguments are strings to give program as arguments.")
 
     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 @@ Remaining arguments are strings to give program as arguments.")
   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);