# HG changeset patch # User Katsumi Yamaoka # Date 1286332919 0 # Node ID 74a0e8ad744777017149643c80f454c084d5276f # Parent a133fd492185cc9735abea9ebcbdaec16d237349 gnus-art.el (gnus-mime-view-part-as-type): Make it work when being called interactively. diff -r a133fd492185 -r 74a0e8ad7447 lisp/gnus/ChangeLog --- 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 + * 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. diff -r a133fd492185 -r 74a0e8ad7447 lisp/gnus/gnus-art.el --- 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)