diff options
author | Glenn Morris <rgm@gnu.org> | 2007-12-11 05:43:42 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-12-11 05:43:42 +0000 |
commit | 1ffeb586a53bfad9006036f160c6321933cfd6b6 (patch) | |
tree | 7f3765894685e5a840908088cc0e8615ded1055e /lisp/gnus | |
parent | ea7d768a9ac545a2a825dba59a54f1d6fc4505e0 (diff) | |
download | emacs-1ffeb586a53bfad9006036f160c6321933cfd6b6.tar.gz |
Add declare-function compatibility definition.
(gnus-compress-sequence): Autoload.
(imap-capability): Declare as a function.
Diffstat (limited to 'lisp/gnus')
-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 @@ ;;; Code: +;; For Emacs < 22.2. +(eval-and-compile + (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) + (require 'format-spec) (eval-when-compile (require 'cl) @@ -997,9 +1001,14 @@ This only works when `display-time' is enabled." (autoload 'imap-range-to-message-set "imap") (autoload 'nnheader-ms-strip-cr "nnheader")) +(autoload 'gnus-compress-sequence "gnus-range") + (defvar mail-source-imap-file-coding-system 'binary "Coding system for the crashbox made by `mail-source-fetch-imap'.") +;; Autoloads will bring in imap before this is called. +(declare-function imap-capability "imap" (&optional identifier buffer)) + (defun mail-source-fetch-imap (source callback) "Fetcher for imap sources." (mail-source-bind (imap source) |