Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-82
authorMiles Bader <miles@gnu.org>
Sun, 6 Feb 2005 11:56:41 +0000 (11:56 +0000)
committerMiles Bader <miles@gnu.org>
Sun, 6 Feb 2005 11:56:41 +0000 (11:56 +0000)
Merge from gnus--rel--5.10

Patches applied:

 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-12
   Merge from emacs--cvs-trunk--0

 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-13
   Update from CVS

2005-02-03  Katsumi Yamaoka  <yamaoka@jpl.org>

   * lisp/gnus/gnus-art.el (gnus-mime-inline-part): Show the raw contents if a
   prefix arg is neither nil nor a number, as info specifies.

lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el

index eb761d1..e0db7c1 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-01-30  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * gnus-art.el (gnus-article-mode): Turn off the "\ " non-break space.
index 3f8e172..22d48c3 100644 (file)
@@ -4354,7 +4354,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