From: tomo Date: Thu, 19 Aug 1999 05:15:17 +0000 (+0000) Subject: (mime-preview/decode-text-buffer): Don't call `mime-decode-region' if X-Git-Tag: tm-8_1~17 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=dfdd8fdb4fea39a6108a33adcf05e4b2c38736a2;p=elisp%2Ftm.git (mime-preview/decode-text-buffer): Don't call `mime-decode-region' if `encoding' is nil. --- 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)