summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@raeburn.org>2006-01-03 08:24:37 +0000
committerKen Raeburn <raeburn@raeburn.org>2006-01-03 08:24:37 +0000
commit1a271e14d73298ecc665993ac7d0087ab2a66f92 (patch)
tree30fa4dde2840ab785f4b8828972428be7829fb8a /src/callproc.c
parentaf43518401786b4745d27811df65d9d615780f31 (diff)
downloademacs-1a271e14d73298ecc665993ac7d0087ab2a66f92.tar.gz
(delete_temp_file): Bind file-name-handler-alist to nil for the call
to internal_delete_file.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/callproc.c b/src/callproc.c
index a9b9d2bff6a..b0fe16e70b8 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1013,9 +1013,11 @@ static Lisp_Object
delete_temp_file (name)
Lisp_Object name;
{
- /* Use Fdelete_file (indirectly) because that runs a file name handler.
- We did that when writing the file, so we should do so when deleting. */
+ /* Suppress jka-compr handling, etc. */
+ int count = SPECPDL_INDEX ();
+ specbind (intern ("file-name-handler-alist"), Qnil);
internal_delete_file (name);
+ unbind_to (count, Qnil);
return Qnil;
}