diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index e5546488aae..73da0db18a8 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1614,9 +1614,12 @@ usage: (start-process NAME BUFFER PROGRAM &rest PROGRAM-ARGS) */) | |||
| 1614 | 1614 | ||
| 1615 | GCPRO2 (buffer, current_dir); | 1615 | GCPRO2 (buffer, current_dir); |
| 1616 | 1616 | ||
| 1617 | current_dir | 1617 | current_dir = Funhandled_file_name_directory (current_dir); |
| 1618 | = expand_and_dir_to_file (Funhandled_file_name_directory (current_dir), | 1618 | if (NILP (current_dir)) |
| 1619 | Qnil); | 1619 | /* If the file name handler says that current_dir is unreachable, use |
| 1620 | a sensible default. */ | ||
| 1621 | current_dir = build_string ("~/"); | ||
| 1622 | current_dir = expand_and_dir_to_file (current_dir, Qnil); | ||
| 1620 | if (NILP (Ffile_accessible_directory_p (current_dir))) | 1623 | if (NILP (Ffile_accessible_directory_p (current_dir))) |
| 1621 | report_file_error ("Setting current directory", | 1624 | report_file_error ("Setting current directory", |
| 1622 | Fcons (current_buffer->directory, Qnil)); | 1625 | Fcons (current_buffer->directory, Qnil)); |