From 2ac64032523cd24a670f04c0c9f94ebb6ceefced Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Thu, 3 Feb 2005 07:01:10 +0000 Subject: [PATCH] (gnus-mime-inline-part): Show the raw contents if a prefix arg is neither nil nor a number, as info specifies. --- lisp/ChangeLog | 5 +++++ lisp/gnus-art.el | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c6e8275f6..2752f7d14 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2005-02-03 Katsumi Yamaoka + + * gnus-art.el (gnus-mime-inline-part): Show the raw contents if a + prefix arg is neither nil nor a number, as info specifies. + 2005-02-02 Katsumi Yamaoka * nntp.el (nntp-marks-changed-p): Use time-less-p to compare the diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el index 6a3052901..4068ae018 100644 --- a/lisp/gnus-art.el +++ b/lisp/gnus-art.el @@ -4333,7 +4333,16 @@ are decompressed." (setq charset (or (cdr (assq arg gnus-summary-show-article-charset-alist)) - (mm-read-coding-system "Charset: "))))) + (mm-read-coding-system "Charset: ")))) + (t + (if (mm-handle-undisplayer handle) + (mm-remove-part handle)) + (setq contents + (if (fboundp 'string-to-multibyte) + (string-to-multibyte contents) + (mapconcat + (lambda (ch) (mm-string-as-multibyte (char-to-string ch))) + contents ""))))) (forward-line 2) (mm-insert-inline handle (if (and charset -- 2.25.1