aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2013-08-12 01:03:33 +0000
committerKatsumi Yamaoka2013-08-12 01:03:33 +0000
commit6aac58fc77b9eced69ee8ab147a46c281b30c737 (patch)
treede82b09d8b26384ad3ab9937d74fe7fc5074db8f
parenteaca0446e72c1a62e259c0ee0eabdd6a0443e5c8 (diff)
downloademacs-6aac58fc77b9eced69ee8ab147a46c281b30c737.tar.gz
emacs-6aac58fc77b9eced69ee8ab147a46c281b30c737.zip
lisp/gnus/mm-decode.el (mm-display-external): Try to delete temporary files by using a 1-min. timer
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/mm-decode.el7
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index ab776bfbb54..6b7be997ea9 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12013-08-12 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * mm-decode.el (mm-display-external): Try to delete temporary files by
4 using a 1-min. timer.
5
12013-08-09 Katsumi Yamaoka <yamaoka@jpl.org> 62013-08-09 Katsumi Yamaoka <yamaoka@jpl.org>
2 7
3 * mm-decode.el (mm-temp-files-to-be-deleted, mm-temp-files-cache-file): 8 * mm-decode.el (mm-temp-files-to-be-deleted, mm-temp-files-cache-file):
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el
index f1e11a01194..40c1d849f3c 100644
--- a/lisp/gnus/mm-decode.el
+++ b/lisp/gnus/mm-decode.el
@@ -1021,6 +1021,13 @@ external if displayed external."
1021 (buffer buffer) 1021 (buffer buffer)
1022 (command command) 1022 (command command)
1023 (handle handle)) 1023 (handle handle))
1024 (run-at-time
1025 60.0 nil
1026 (lambda ()
1027 (ignore-errors
1028 (delete-file file))
1029 (ignore-errors
1030 (delete-directory (file-name-directory file)))))
1024 (lambda (process state) 1031 (lambda (process state)
1025 (when (eq (process-status process) 'exit) 1032 (when (eq (process-status process) 'exit)
1026 (when (buffer-live-p outbuf) 1033 (when (buffer-live-p outbuf)