Give subprocess creation a way to find a valid current directory
authorJim Blandy <jimb@redhat.com>
Sat, 12 Dec 1992 15:36:50 +0000 (15:36 +0000)
committerJim Blandy <jimb@redhat.com>
Sat, 12 Dec 1992 15:36:50 +0000 (15:36 +0000)
commit1e30af705a70316d1e8bb12b1f5364abf97296cb
treea9e40384c2547e7d8e094dea012b953833d25f29
parente86f81cc46f817117847e8086d05092e08079d4c
Give subprocess creation a way to find a valid current directory
for subprocesses when the buffer's default-directory is a handled
name.
* fileio.c (Funhandled_file_name_directory): New function.
(Qunhandled_file_name_directory): New file-name-handler operation.
(syms_of_fileio): Defsubr Sunhandled_file_name_directory, and
initialize and staticpro Qunhandled_file_name_directory.
* callproc.c (Fcall_process): Call Funhandled_file_name_directory
on the buffer's default directory.  Do it earlier in the function
so there's less to GCPRO.
* process.c (create_process): Don't check the validity of the
buffer's default directory here...
(Fstart_process): Instead, do it here; if we call
Funhandled_file_name_directory here, there's less GCPROing to do.
src/process.c