diff lisp/gnus/gnus-art.el @ 110783:74a0e8ad7447

gnus-art.el (gnus-mime-view-part-as-type): Make it work when being called interactively.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Wed, 06 Oct 2010 02:41:59 +0000
parents 9d935b7bf464
children 794e89c10dc1
line wrap: on
line diff
--- a/lisp/gnus/gnus-art.el	Tue Oct 05 19:30:53 2010 -0700
+++ b/lisp/gnus/gnus-art.el	Wed Oct 06 02:41:59 2010 +0000
@@ -5139,7 +5139,9 @@
 	  (let ((default (gnus-mime-view-part-as-type-internal)))
 	    (gnus-completing-read
 	     "View as MIME type"
-	     (gnus-remove-if-not pred (mailcap-mime-types))
+	     (if pred
+		 (gnus-remove-if-not pred (mailcap-mime-types))
+	       (mailcap-mime-types))
 	     nil nil nil
 	     (car default)))))
   (gnus-article-check-buffer)