diff options
| author | Glenn Morris | 2007-12-11 05:43:42 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-11 05:43:42 +0000 |
| commit | 1ffeb586a53bfad9006036f160c6321933cfd6b6 (patch) | |
| tree | 7f3765894685e5a840908088cc0e8615ded1055e | |
| parent | ea7d768a9ac545a2a825dba59a54f1d6fc4505e0 (diff) | |
| download | emacs-1ffeb586a53bfad9006036f160c6321933cfd6b6.tar.gz emacs-1ffeb586a53bfad9006036f160c6321933cfd6b6.zip | |
Add declare-function compatibility definition.
(gnus-compress-sequence): Autoload.
(imap-capability): Declare as a function.
| -rw-r--r-- | lisp/gnus/mail-source.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index 39595b767ad..a3721430819 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el | |||
| @@ -27,6 +27,10 @@ | |||
| 27 | 27 | ||
| 28 | ;;; Code: | 28 | ;;; Code: |
| 29 | 29 | ||
| 30 | ;; For Emacs < 22.2. | ||
| 31 | (eval-and-compile | ||
| 32 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 33 | |||
| 30 | (require 'format-spec) | 34 | (require 'format-spec) |
| 31 | (eval-when-compile | 35 | (eval-when-compile |
| 32 | (require 'cl) | 36 | (require 'cl) |
| @@ -997,9 +1001,14 @@ This only works when `display-time' is enabled." | |||
| 997 | (autoload 'imap-range-to-message-set "imap") | 1001 | (autoload 'imap-range-to-message-set "imap") |
| 998 | (autoload 'nnheader-ms-strip-cr "nnheader")) | 1002 | (autoload 'nnheader-ms-strip-cr "nnheader")) |
| 999 | 1003 | ||
| 1004 | (autoload 'gnus-compress-sequence "gnus-range") | ||
| 1005 | |||
| 1000 | (defvar mail-source-imap-file-coding-system 'binary | 1006 | (defvar mail-source-imap-file-coding-system 'binary |
| 1001 | "Coding system for the crashbox made by `mail-source-fetch-imap'.") | 1007 | "Coding system for the crashbox made by `mail-source-fetch-imap'.") |
| 1002 | 1008 | ||
| 1009 | ;; Autoloads will bring in imap before this is called. | ||
| 1010 | (declare-function imap-capability "imap" (&optional identifier buffer)) | ||
| 1011 | |||
| 1003 | (defun mail-source-fetch-imap (source callback) | 1012 | (defun mail-source-fetch-imap (source callback) |
| 1004 | "Fetcher for imap sources." | 1013 | "Fetcher for imap sources." |
| 1005 | (mail-source-bind (imap source) | 1014 | (mail-source-bind (imap source) |