(mime-preview/decode-text-buffer): Don't call `mime-decode-region' if
authortomo <tomo>
Thu, 19 Aug 1999 05:15:17 +0000 (05:15 +0000)
committertomo <tomo>
Thu, 19 Aug 1999 05:15:17 +0000 (05:15 +0000)
`encoding' is nil.

tm-text.el

index 613aa6e..5c23813 100644 (file)
@@ -49,7 +49,8 @@
       ))
 
 (defun mime-preview/decode-text-buffer (charset encoding)
-  (mime-decode-region (point-min) (point-max) encoding)
+  (if encoding
+      (mime-decode-region (point-min) (point-max) encoding))
   (let* ((mode mime::preview/original-major-mode)
         (m (or (save-excursion
                  (set-buffer mime::preview/article-buffer)