diff options
| author | Richard M. Stallman | 1995-02-14 14:23:49 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-02-14 14:23:49 +0000 |
| commit | 7af71e17c1d0b1614e1aaf1ba4e0d249323c5378 (patch) | |
| tree | f12c29a8df1e40461604d097488f085b180a7600 /src/process.c | |
| parent | 92e2441bd19f0d368851ed12a14616bf6e414164 (diff) | |
| download | emacs-7af71e17c1d0b1614e1aaf1ba4e0d249323c5378.tar.gz emacs-7af71e17c1d0b1614e1aaf1ba4e0d249323c5378.zip | |
(Fstart_process): Make process marker point into proc buf.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index 3f93cd807eb..67d1609ad9d 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1035,9 +1035,9 @@ Remaining arguments are strings to give program as arguments.") | |||
| 1035 | 1035 | ||
| 1036 | GCPRO2 (buffer, current_dir); | 1036 | GCPRO2 (buffer, current_dir); |
| 1037 | 1037 | ||
| 1038 | current_dir = | 1038 | current_dir |
| 1039 | expand_and_dir_to_file | 1039 | = expand_and_dir_to_file (Funhandled_file_name_directory (current_dir), |
| 1040 | (Funhandled_file_name_directory (current_dir), Qnil); | 1040 | Qnil); |
| 1041 | if (NILP (Ffile_accessible_directory_p (current_dir))) | 1041 | if (NILP (Ffile_accessible_directory_p (current_dir))) |
| 1042 | report_file_error ("Setting current directory", | 1042 | report_file_error ("Setting current directory", |
| 1043 | Fcons (current_buffer->directory, Qnil)); | 1043 | Fcons (current_buffer->directory, Qnil)); |
| @@ -1117,6 +1117,11 @@ Remaining arguments are strings to give program as arguments.") | |||
| 1117 | XPROCESS (proc)->filter = Qnil; | 1117 | XPROCESS (proc)->filter = Qnil; |
| 1118 | XPROCESS (proc)->command = Flist (nargs - 2, args + 2); | 1118 | XPROCESS (proc)->command = Flist (nargs - 2, args + 2); |
| 1119 | 1119 | ||
| 1120 | /* Make the process marker point into the process buffer (if any). */ | ||
| 1121 | if (!NILP (buffer)) | ||
| 1122 | Fset_marker (XPROCESS (proc)->mark, | ||
| 1123 | make_number (BUF_ZV (XBUFFER (buffer))), buffer); | ||
| 1124 | |||
| 1120 | create_process (proc, new_argv, current_dir); | 1125 | create_process (proc, new_argv, current_dir); |
| 1121 | 1126 | ||
| 1122 | return unbind_to (count, proc); | 1127 | return unbind_to (count, proc); |