changeset 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 a133fd492185
children e7fd8dc3d74d
files lisp/gnus/ChangeLog lisp/gnus/gnus-art.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Tue Oct 05 19:30:53 2010 -0700
+++ b/lisp/gnus/ChangeLog	Wed Oct 06 02:41:59 2010 +0000
@@ -1,5 +1,8 @@
 2010-10-06  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+	* gnus-art.el (gnus-mime-view-part-as-type): Make it work when being
+	called interactively.
+
 	* gnus-util.el (gnus-remove-if): Allow hash table.
 	(gnus-remove-if-not): New function.
 
--- 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)