changeset 8737:72b312ebaa10

(delete_temp_file): Use Fdelete_file.
author Richard M. Stallman <rms@gnu.org>
date Wed, 14 Sep 1994 09:15:46 +0000
parents fe48762e68de
children 56c445a92c4c
files src/callproc.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Wed Sep 14 09:05:48 1994 +0000
+++ b/src/callproc.c	Wed Sep 14 09:15:46 1994 +0000
@@ -467,7 +467,9 @@
 delete_temp_file (name)
      Lisp_Object name;
 {
-  unlink (XSTRING (name)->data);
+  /* Use Fdelete_file because that runs a file name handler.
+     We did that when writing the file, so we should do so when deleting.  */
+  Fdelete_file (name);
 }
 
 DEFUN ("call-process-region", Fcall_process_region, Scall_process_region,