X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mime-w3.el;h=32558c0f39a8482a7d0cb94ab530eedb0818461d;hb=24a80b2cfd38ed25466b792fc0777ee033ced6bc;hp=598636f8b72f1ef68eb56cb374145b1c41e5997c;hpb=3e5d4bc74586cc55df0dad19eb97f05dc8f70519;p=elisp%2Fsemi.git diff --git a/mime-w3.el b/mime-w3.el index 598636f..32558c0 100644 --- a/mime-w3.el +++ b/mime-w3.el @@ -67,15 +67,22 @@ (defun url-cid (url &optional proxy-info) (let ((entity (mime-find-entity-from-content-id (mime-uri-parse-cid url) - mime-w3-message-structure))) + mime-w3-message-structure)) + buffer) (when entity - (mime-insert-entity-content entity) - (setq url-current-mime-type (mime-entity-type/subtype entity)) - ))) - -(url-register-protocol "cid" - 'url-cid - 'url-identity-expander) + (setq buffer (generate-new-buffer (format " *cid %s" url))) + (save-excursion + (set-buffer buffer) + (mime-insert-entity-content entity) + (if (boundp 'url-current-mime-type) + (setq url-current-mime-type (mime-entity-type/subtype entity))))) + buffer)) + +(if (fboundp 'url-register-protocol) + (url-register-protocol "cid" + 'url-cid + 'url-identity-expander) + (provide 'url-cid)) ;;; @ end