]> git.eshelyaron.com Git - emacs.git/commitdiff
(delete_temp_file): Use Fdelete_file.
authorRichard M. Stallman <rms@gnu.org>
Wed, 14 Sep 1994 09:15:46 +0000 (09:15 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 14 Sep 1994 09:15:46 +0000 (09:15 +0000)
src/callproc.c

index 990a48c4db935279b81b7c54d569c02683d8173c..1da4b4d5781b3418a84abc906d01ba6d913d7998 100644 (file)
@@ -467,7 +467,9 @@ static Lisp_Object
 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,