diff options
| author | Glenn Morris | 2010-10-31 19:07:01 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-10-31 19:07:01 -0700 |
| commit | 2b1e1ff4fa06c07526f36096c56dd119380a9a5f (patch) | |
| tree | cb5bb7964a2c5613a304d5fe69680d474de26545 | |
| parent | 89cff4667b8b908a8b74e4b5862647472f91f648 (diff) | |
| download | emacs-2b1e1ff4fa06c07526f36096c56dd119380a9a5f.tar.gz emacs-2b1e1ff4fa06c07526f36096c56dd119380a9a5f.zip | |
Silence nnimap.el compilation.
* lisp/gnus/nnimap.el: Require nnmail, and gnus-sum when compiling.
(nnimap-keepalive): Use gnus-float-time.
| -rw-r--r-- | lisp/gnus/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index c3b747bc589..af52b316ea9 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-11-01 Glenn Morris <rgm@gnu.org> | 1 | 2010-11-01 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * nnimap.el: Require nnmail, and gnus-sum when compiling. | ||
| 4 | (nnimap-keepalive): Use gnus-float-time. | ||
| 5 | |||
| 3 | * mail-source.el (nnheader-message, gnus-float-time): Autoload. | 6 | * mail-source.el (nnheader-message, gnus-float-time): Autoload. |
| 4 | (mail-source-delete-crash-box): Use gnus-float-time. | 7 | (mail-source-delete-crash-box): Use gnus-float-time. |
| 5 | 8 | ||
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 3940e643532..4d0d4b840f4 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -44,6 +44,10 @@ | |||
| 44 | (require 'utf7) | 44 | (require 'utf7) |
| 45 | (require 'tls) | 45 | (require 'tls) |
| 46 | (require 'parse-time) | 46 | (require 'parse-time) |
| 47 | (require 'nnmail) | ||
| 48 | |||
| 49 | (eval-when-compile | ||
| 50 | (require 'gnus-sum)) | ||
| 47 | 51 | ||
| 48 | (autoload 'auth-source-forget-user-or-password "auth-source") | 52 | (autoload 'auth-source-forget-user-or-password "auth-source") |
| 49 | (autoload 'auth-source-user-or-password "auth-source") | 53 | (autoload 'auth-source-user-or-password "auth-source") |
| @@ -287,7 +291,7 @@ textual parts.") | |||
| 287 | (with-current-buffer buffer | 291 | (with-current-buffer buffer |
| 288 | (when (and nnimap-object | 292 | (when (and nnimap-object |
| 289 | (nnimap-last-command-time nnimap-object) | 293 | (nnimap-last-command-time nnimap-object) |
| 290 | (> (time-to-seconds | 294 | (> (gnus-float-time |
| 291 | (time-subtract | 295 | (time-subtract |
| 292 | now | 296 | now |
| 293 | (nnimap-last-command-time nnimap-object))) | 297 | (nnimap-last-command-time nnimap-object))) |