of `mm-destroy-parts'. Invoke `mm-destroy-parts'
when the buffer is killed.
+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
(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."