Mercurial > emacs
comparison lisp/gnus/gnus-art.el @ 110779:9d935b7bf464
Eliminate `remove-if-not' that is a cl function.
gnus-util.el (gnus-remove-if): Allow hash table.
gnus-util.el (gnus-remove-if-not): New function.
gnus-art.el (gnus-mime-view-part-as-type): Replace remove-if-not with gnus-remove-if-not.
gnus-score.el (gnus-summary-score-effect): Replace remove-if-not with gnus-remove-if-not.
gnus-sum.el (gnus-read-move-group-name): Replace remove-if-not with gnus-remove-if-not.
gnus-group.el (gnus-group-completing-read): Regard collection as a hash table if it is not a list.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Wed, 06 Oct 2010 01:09:32 +0000 |
parents | 895607aec71e |
children | 74a0e8ad7447 |
comparison
equal
deleted
inserted
replaced
110778:5a595f515d1c | 110779:9d935b7bf464 |
---|---|
5137 (unless mime-type | 5137 (unless mime-type |
5138 (setq mime-type | 5138 (setq mime-type |
5139 (let ((default (gnus-mime-view-part-as-type-internal))) | 5139 (let ((default (gnus-mime-view-part-as-type-internal))) |
5140 (gnus-completing-read | 5140 (gnus-completing-read |
5141 "View as MIME type" | 5141 "View as MIME type" |
5142 (remove-if-not pred (mailcap-mime-types)) | 5142 (gnus-remove-if-not pred (mailcap-mime-types)) |
5143 nil nil nil | 5143 nil nil nil |
5144 (car default))))) | 5144 (car default))))) |
5145 (gnus-article-check-buffer) | 5145 (gnus-article-check-buffer) |
5146 (let ((handle (get-text-property (point) 'gnus-data))) | 5146 (let ((handle (get-text-property (point) 'gnus-data))) |
5147 (when handle | 5147 (when handle |