Commit 14e25c87 authored by Masatake YAMATO's avatar Masatake YAMATO
Browse files

(url-mm-callback): Delay the invocation

of `mm-destroy-parts'. Invoke `mm-destroy-parts'
when the buffer is killed.
parent 18cb59e8
2004-11-20 Masatake YAMATO <jet@gyve.org>
* url.el (url-mm-callback): Delay the invocation
of `mm-destroy-parts'. Invoke `mm-destroy-parts'
when the buffer is killed.
2004-11-12 Masatake YAMATO <jet@gyve.org>
* url-mailto.el (url-mailto): Fix a typo in the
......
......@@ -207,7 +207,10 @@ no further processing). URL is either a string or a parsed URL."
(message "Viewing externally")
(kill-buffer (current-buffer)))
(display-buffer (current-buffer))
(mm-destroy-parts handle)))))
(add-hook 'kill-buffer-hook
`(lambda () (mm-destroy-parts ',handle))
nil
t)))))
(defun url-mm-url (url)
"Retrieve URL and pass to the appropriate viewing application."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment