comparison src/callproc.c @ 90261:7beb78bc1f8e

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-97 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 616-696) - Add lisp/mh-e/.arch-inventory - Update from CVS - Merge from gnus--rel--5.10 - Update from CVS: lisp/smerge-mode.el: Add 'tools' to file keywords. - lisp/gnus/ChangeLog: Remove duplicate entry * gnus--rel--5.10 (patch 147-181) - Update from CVS - Merge from emacs--cvs-trunk--0 - Update from CVS: lisp/mml.el (mml-preview): Doc fix. - Update from CVS: texi/message.texi: Fix default values. - Update from CVS: texi/gnus.texi (RSS): Addition.
author Miles Bader <miles@gnu.org>
date Mon, 16 Jan 2006 08:37:27 +0000
parents 2d92f5c9d6ae d7475f0d0bda
children 7432ca837c8d
comparison
equal deleted inserted replaced
90260:0ca0d9181b5e 90261:7beb78bc1f8e
894 894
895 static Lisp_Object 895 static Lisp_Object
896 delete_temp_file (name) 896 delete_temp_file (name)
897 Lisp_Object name; 897 Lisp_Object name;
898 { 898 {
899 /* Use Fdelete_file (indirectly) because that runs a file name handler. 899 /* Suppress jka-compr handling, etc. */
900 We did that when writing the file, so we should do so when deleting. */ 900 int count = SPECPDL_INDEX ();
901 specbind (intern ("file-name-handler-alist"), Qnil);
901 internal_delete_file (name); 902 internal_delete_file (name);
903 unbind_to (count, Qnil);
902 return Qnil; 904 return Qnil;
903 } 905 }
904 906
905 DEFUN ("call-process-region", Fcall_process_region, Scall_process_region, 907 DEFUN ("call-process-region", Fcall_process_region, Scall_process_region,
906 3, MANY, 0, 908 3, MANY, 0,
1007 1009
1008 { 1010 {
1009 int count1 = SPECPDL_INDEX (); 1011 int count1 = SPECPDL_INDEX ();
1010 1012
1011 specbind (intern ("coding-system-for-write"), val); 1013 specbind (intern ("coding-system-for-write"), val);
1014 /* POSIX lets mk[s]temp use "."; don't invoke jka-compr if we
1015 happen to get a ".Z" suffix. */
1016 specbind (intern ("file-name-handler-alist"), Qnil);
1012 Fwrite_region (start, end, filename_string, Qnil, Qlambda, Qnil, Qnil); 1017 Fwrite_region (start, end, filename_string, Qnil, Qlambda, Qnil, Qnil);
1013 1018
1014 unbind_to (count1, Qnil); 1019 unbind_to (count1, Qnil);
1015 } 1020 }
1016 1021