diff options
| author | Glenn Morris | 2007-12-11 05:41:13 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-11 05:41:13 +0000 |
| commit | 60ef4154fb8c831ce0939e097f6779e673db74fe (patch) | |
| tree | 15b1a093cba4260f52662b29b75850366309c2bb | |
| parent | f72f15031a6850bb7c717fdab8e64bbe8cee3d09 (diff) | |
| download | emacs-60ef4154fb8c831ce0939e097f6779e673db74fe.tar.gz emacs-60ef4154fb8c831ce0939e097f6779e673db74fe.zip | |
Add declare-function compatibility definition.
Require gnus-util.
(gnus-configure-windows): Declare as a function.
(mm-remove-part): Only call delete-annotation on XEmacs.
(mm-view-pkcs7): Autoload.
| -rw-r--r-- | lisp/gnus/mm-decode.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index 71ef9bcdf55..9de9b3d354e 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el | |||
| @@ -26,9 +26,14 @@ | |||
| 26 | 26 | ||
| 27 | ;;; Code: | 27 | ;;; Code: |
| 28 | 28 | ||
| 29 | ;; For Emacs < 22.2. | ||
| 30 | (eval-and-compile | ||
| 31 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 32 | |||
| 29 | (require 'mail-parse) | 33 | (require 'mail-parse) |
| 30 | (require 'mailcap) | 34 | (require 'mailcap) |
| 31 | (require 'mm-bodies) | 35 | (require 'mm-bodies) |
| 36 | (require 'gnus-util) | ||
| 32 | (eval-when-compile (require 'cl) | 37 | (eval-when-compile (require 'cl) |
| 33 | (require 'term)) | 38 | (require 'term)) |
| 34 | 39 | ||
| @@ -733,6 +738,8 @@ external if displayed external." | |||
| 733 | (mm-display-external | 738 | (mm-display-external |
| 734 | handle 'mailcap-save-binary-file))))))))) | 739 | handle 'mailcap-save-binary-file))))))))) |
| 735 | 740 | ||
| 741 | (declare-function gnus-configure-windows "gnus-win" (setting &optional force)) | ||
| 742 | |||
| 736 | (defun mm-display-external (handle method) | 743 | (defun mm-display-external (handle method) |
| 737 | "Display HANDLE using METHOD." | 744 | "Display HANDLE using METHOD." |
| 738 | (let ((outbuf (current-buffer))) | 745 | (let ((outbuf (current-buffer))) |
| @@ -990,7 +997,8 @@ external if displayed external." | |||
| 990 | (cond | 997 | (cond |
| 991 | ;; Internally displayed part. | 998 | ;; Internally displayed part. |
| 992 | ((mm-annotationp object) | 999 | ((mm-annotationp object) |
| 993 | (delete-annotation object)) | 1000 | (if (featurep 'xemacs) |
| 1001 | (delete-annotation object))) | ||
| 994 | ((or (functionp object) | 1002 | ((or (functionp object) |
| 995 | (and (listp object) | 1003 | (and (listp object) |
| 996 | (eq (car object) 'lambda))) | 1004 | (eq (car object) 'lambda))) |
| @@ -1490,6 +1498,8 @@ If RECURSIVE, search recursively." | |||
| 1490 | (put-text-property 0 (length (car handle)) parameter value | 1498 | (put-text-property 0 (length (car handle)) parameter value |
| 1491 | (car handle)))) | 1499 | (car handle)))) |
| 1492 | 1500 | ||
| 1501 | (autoload 'mm-view-pkcs7 "mm-view") | ||
| 1502 | |||
| 1493 | (defun mm-possibly-verify-or-decrypt (parts ctl) | 1503 | (defun mm-possibly-verify-or-decrypt (parts ctl) |
| 1494 | (let ((type (car ctl)) | 1504 | (let ((type (car ctl)) |
| 1495 | (subtype (cadr (split-string (car ctl) "/"))) | 1505 | (subtype (cadr (split-string (car ctl) "/"))) |