mm-decode.el (mm-display-external): Try to delete temporary files by using a 1-min...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 12 Aug 2013 01:03:16 +0000 (01:03 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 12 Aug 2013 01:03:16 +0000 (01:03 +0000)
lisp/ChangeLog
lisp/mm-decode.el

index 7123f7f..006b291 100644 (file)
@@ -1,3 +1,8 @@
+2013-08-12  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mm-decode.el (mm-display-external): Try to delete temporary files by
+       using a 1-min. timer.
+
 2013-08-09  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mm-decode.el (mm-temp-files-to-be-deleted, mm-temp-files-cache-file):
index f1e11a0..40c1d84 100644 (file)
@@ -1021,6 +1021,13 @@ external if displayed external."
                                   (buffer buffer)
                                   (command command)
                                   (handle handle))
+                      (run-at-time
+                       60.0 nil
+                       (lambda ()
+                         (ignore-errors
+                           (delete-file file))
+                         (ignore-errors
+                           (delete-directory (file-name-directory file)))))
                       (lambda (process state)
                         (when (eq (process-status process) 'exit)
                           (when (buffer-live-p outbuf)