mirror of https://github.com/djcb/mu.git
mu4e: ensure filename is valid for removing it later
lexical-let the filename to be removed later, so it's still valid.
This commit is contained in:
parent
a81270583f
commit
bd0fd4b8d8
|
@ -142,8 +142,9 @@ return the result."
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
(defun mu4e-remove-file-later (filename)
|
||||
"Remove FILENAME in a few seconds."
|
||||
(lexical-let ((filename filename))
|
||||
(run-at-time "10 sec" nil
|
||||
(lambda () (ignore-errors (delete-file filename)))))
|
||||
(lambda () (ignore-errors (delete-file filename))))))
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
Loading…
Reference in New Issue