2001-12-05 Katsumi Yamaoka <yamaoka@jpl.org>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 5 Dec 2001 14:48:25 +0000 (14:48 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Wed, 5 Dec 2001 14:48:25 +0000 (14:48 +0000)
* mm-view.wl (mm-inline-text): Decode a charset-encoded rich text.

lisp/ChangeLog
lisp/mm-view.el

index 03b34c8..0d60faf 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-05  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * mm-view.wl (mm-inline-text): Decode a charset-encoded rich text.
+
 2001-12-04 08:00:00  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * mm-url.el: Require executable.
index fbceb3a..414a485 100644 (file)
                              '(background background-pixmap foreground)))
                  (delete-region ,(point-min-marker)
                                 ,(point-max-marker)))))))))
-     ((or (equal type "enriched")
-         (equal type "richtext"))
-      (save-excursion
-       (mm-with-unibyte-buffer
-         (mm-insert-part handle)
-         (save-window-excursion
-           (enriched-decode (point-min) (point-max))
-           (setq text (buffer-string)))))
-      (mm-insert-inline handle text))
      ((equal type "x-vcard")
       (mm-insert-inline
        handle
        (save-restriction
          (narrow-to-region b (point))
          (set-text-properties (point-min) (point-max) nil)
+         (when (or (equal type "enriched")
+                   (equal type "richtext"))
+           (enriched-decode (point-min) (point-max)))
          (mm-handle-set-undisplayer
           handle
           `(lambda ()