(gnus-mime-inline-part): Show the raw contents if a prefix arg is neither nil
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 3 Feb 2005 07:01:10 +0000 (07:01 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 3 Feb 2005 07:01:10 +0000 (07:01 +0000)
 nor a number, as info specifies.

lisp/ChangeLog
lisp/gnus-art.el

index c6e8275..2752f7d 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-03  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * 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  <yamaoka@jpl.org>
 
        * nntp.el (nntp-marks-changed-p): Use time-less-p to compare the
index 6a30529..4068ae0 100644 (file)
@@ -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