Function: gnus-article-delete-text-of-type
gnus-article-delete-text-of-type is a byte-compiled function defined
in gnus-art.el.gz.
Signature
(gnus-article-delete-text-of-type TYPE)
Documentation
Delete text of TYPE in the current buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-art.el.gz
(defun gnus-article-delete-text-of-type (type)
"Delete text of TYPE in the current buffer."
(save-excursion
(let ((b (point-min)))
(if (eq type 'multipart)
;; Remove MIME buttons associated with multipart/alternative parts.
(progn
(goto-char b)
(while (if (get-text-property (point) 'gnus-part)
(setq b (point))
(when (setq b (next-single-property-change (point)
'gnus-part))
(goto-char b)
t))
(end-of-line)
(skip-chars-forward "\n")
(when (eq (get-text-property b 'article-type) 'multipart)
(delete-region b (point)))))
(while (setq b (text-property-any b (point-max) 'article-type type))
(delete-region
b (or (text-property-not-all b (point-max) 'article-type type)
(point-max))))))))