Commit e230a06e authored by Glenn Morris's avatar Glenn Morris

Move `require's before `eval-when-compile's.

Add declare-function compatibility definition.
(gnus-extract-address-components): Declare as a function.
parent da6b9bf4
...@@ -40,16 +40,20 @@ ...@@ -40,16 +40,20 @@
;;{{{ compilation directives and autoloads/requires ;;{{{ compilation directives and autoloads/requires
;; For Emacs < 22.2.
(eval-and-compile
(unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
(eval-when-compile (require 'cl)) (eval-when-compile (require 'cl))
(eval-when-compile (require 'spam-report))
(eval-when-compile (require 'hashcash))
(require 'message) ;for the message-fetch-field functions
(require 'gnus-sum) (require 'gnus-sum)
(require 'gnus-uu) ; because of key prefix issues (require 'gnus-uu) ; because of key prefix issues
;;; for the definitions of group content classification and spam processors ;;; for the definitions of group content classification and spam processors
(require 'gnus) (require 'gnus)
(require 'message) ;for the message-fetch-field functions
(eval-when-compile (require 'spam-report))
(eval-when-compile (require 'hashcash))
;; for nnimap-split-download-body-default ;; for nnimap-split-download-body-default
(eval-when-compile (require 'nnimap)) (eval-when-compile (require 'nnimap))
...@@ -2066,6 +2070,9 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details." ...@@ -2066,6 +2070,9 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details."
(autoload 'bbdb-create-internal "bbdb") (autoload 'bbdb-create-internal "bbdb")
(autoload 'bbdb-search-simple "bbdb")) (autoload 'bbdb-search-simple "bbdb"))
;; Autoloaded in message, which we require.
(declare-function gnus-extract-address-components "gnus-util" (from))
(eval-and-compile (eval-and-compile
(when (condition-case nil (when (condition-case nil
(progn (progn
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment