From dfdd8fdb4fea39a6108a33adcf05e4b2c38736a2 Mon Sep 17 00:00:00 2001 From: tomo Date: Thu, 19 Aug 1999 05:15:17 +0000 Subject: [PATCH] (mime-preview/decode-text-buffer): Don't call `mime-decode-region' if `encoding' is nil. --- tm-text.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tm-text.el b/tm-text.el index 613aa6e..5c23813 100644 --- a/tm-text.el +++ b/tm-text.el @@ -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) -- 1.7.10.4