mm-decode.el (mm-shr): Add undisplayer to MIME handle.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 27 Oct 2010 03:59:41 +0000 (03:59 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 27 Oct 2010 03:59:41 +0000 (03:59 +0000)
lisp/ChangeLog
lisp/mm-decode.el

index 3cf3c2c..39346ca 100644 (file)
@@ -1,5 +1,7 @@
 2010-10-27  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * mm-decode.el (mm-shr): Add undisplayer to MIME handle.
+
        * gnus-group.el (gnus-group-completing-read)
        (gnus-read-ephemeral-bug-group): Replace replace-regexp-in-string with
        gnus-replace-in-string.
index d18bb86..d1fd493 100644 (file)
@@ -1712,7 +1712,13 @@ If RECURSIVE, search recursively."
                       (mm-decode-coding-string (buffer-string) charset)
                     (erase-buffer)
                     (mm-enable-multibyte))))
-        (libxml-parse-html-region (point-min) (point-max)))))))
+        (libxml-parse-html-region (point-min) (point-max))))
+      (mm-handle-set-undisplayer
+       handle
+       `(lambda ()
+         (let ((inhibit-read-only t))
+           (delete-region ,(point-min-marker)
+                          ,(point-max-marker))))))))
 
 (provide 'mm-decode)