comparison src/callproc.c @ 67989:d7475f0d0bda

(delete_temp_file): Bind file-name-handler-alist to nil for the call to internal_delete_file.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 03 Jan 2006 08:24:24 +0000
parents 5936baa93f63
children ee72dfb5a3cd 55e22205ba88 7beb78bc1f8e
comparison
equal deleted inserted replaced
67988:7882fc7df359 67989:d7475f0d0bda
1011 1011
1012 static Lisp_Object 1012 static Lisp_Object
1013 delete_temp_file (name) 1013 delete_temp_file (name)
1014 Lisp_Object name; 1014 Lisp_Object name;
1015 { 1015 {
1016 /* Use Fdelete_file (indirectly) because that runs a file name handler. 1016 /* Suppress jka-compr handling, etc. */
1017 We did that when writing the file, so we should do so when deleting. */ 1017 int count = SPECPDL_INDEX ();
1018 specbind (intern ("file-name-handler-alist"), Qnil);
1018 internal_delete_file (name); 1019 internal_delete_file (name);
1020 unbind_to (count, Qnil);
1019 return Qnil; 1021 return Qnil;
1020 } 1022 }
1021 1023
1022 DEFUN ("call-process-region", Fcall_process_region, Scall_process_region, 1024 DEFUN ("call-process-region", Fcall_process_region, Scall_process_region,
1023 3, MANY, 0, 1025 3, MANY, 0,