;;; Code:
+;; For Emacs < 22.2.
+(eval-and-compile
+ (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
+
(require 'mail-parse)
(require 'mailcap)
(require 'mm-bodies)
+(require 'gnus-util)
(eval-when-compile (require 'cl)
(require 'term))
(mm-display-external
handle 'mailcap-save-binary-file)))))))))
+(declare-function gnus-configure-windows "gnus-win" (setting &optional force))
+
(defun mm-display-external (handle method)
"Display HANDLE using METHOD."
(let ((outbuf (current-buffer)))
(cond
;; Internally displayed part.
((mm-annotationp object)
- (delete-annotation object))
+ (if (featurep 'xemacs)
+ (delete-annotation object)))
((or (functionp object)
(and (listp object)
(eq (car object) 'lambda)))
(put-text-property 0 (length (car handle)) parameter value
(car handle))))
+(autoload 'mm-view-pkcs7 "mm-view")
+
(defun mm-possibly-verify-or-decrypt (parts ctl)
(let ((type (car ctl))
(subtype (cadr (split-string (car ctl) "/")))