]> git.eshelyaron.com Git - emacs.git/commitdiff
* mh-mime.el (mh-mime-display, mh-mm-inline-message): Fix use of mm-
authorMark D. Baushke <mdb@gnu.org>
Mon, 16 Jan 2006 19:42:53 +0000 (19:42 +0000)
committerMark D. Baushke <mdb@gnu.org>
Mon, 16 Jan 2006 19:42:53 +0000 (19:42 +0000)
functions for text=flowed. (SF #1273521)

lisp/mh-e/ChangeLog
lisp/mh-e/mh-mime.el

index 23a0a2041a51274f5a59375be756975a355a8f0e..8ecaf76b5aec70fc766619a19d5c9f27d9fb056f 100644 (file)
@@ -1,3 +1,9 @@
+2006-01-16  Mark D. Baushke  <mdb@gnu.org>
+
+       * mh-mime.el (mh-mime-display, mh-mm-inline-message): Fix use of
+       mm- functions for proper text=flowed handling. (SF #1273521)
+       (Patch contributed by Katsumi Yamaoka <yamaoka@jpl.org>.)
+
 2006-01-15  Bill Wohler  <wohler@newt.com>
 
        * mh-e.el (mh-limit-map, mh-help-messages): Change keybinding of
index 0f2396d180432c17ad7a155c3ef6fd141200aee2..f2eadd878b0b94b98825d340a17bfcf850fadcf7 100644 (file)
@@ -921,7 +921,10 @@ parsed and then displayed."
             ;; If needed dissect the current buffer
             (if pre-dissected-handles
                 (setq handles pre-dissected-handles)
-              (setq handles (or (mm-dissect-buffer nil) (mm-uu-dissect)))
+              (if (setq handles (mm-dissect-buffer nil))
+                  (when (fboundp 'mm-uu-dissect-text-parts)
+                    (mm-uu-dissect-text-parts handles))
+                (setq handles (mm-uu-dissect)))
               (setf (mh-mime-handles (mh-buffer-data))
                     (mm-merge-handles handles
                                       (mh-mime-handles (mh-buffer-data))))
@@ -1477,8 +1480,11 @@ decoding the same message multiple times."
         (mh-mime-display
          (or (gethash handle (mh-mime-handles-cache (mh-buffer-data)))
              (setf (gethash handle (mh-mime-handles-cache (mh-buffer-data)))
-                   (let ((handles (or (mm-dissect-buffer nil)
-                                      (mm-uu-dissect))))
+                   (let ((handles (mm-dissect-buffer nil)))
+                     (if handles
+                         (when (fboundp 'mm-uu-dissect-text-parts)
+                           (mm-uu-dissect-text-parts handles))
+                       (setq handles (mm-uu-dissect)))
                      (setf (mh-mime-handles (mh-buffer-data))
                            (mm-merge-handles
                             handles (mh-mime-handles (mh-buffer-data))))