changeset 111283:c6f71b33c8ee

Silence nnimap.el compilation. * lisp/gnus/nnimap.el: Require nnmail, and gnus-sum when compiling. (nnimap-keepalive): Use gnus-float-time.
author Glenn Morris <rgm@gnu.org>
date Sun, 31 Oct 2010 19:07:01 -0700
parents 8fecec59e268
children c8afa6dd9295
files lisp/gnus/ChangeLog lisp/gnus/nnimap.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Sun Oct 31 18:56:28 2010 -0700
+++ b/lisp/gnus/ChangeLog	Sun Oct 31 19:07:01 2010 -0700
@@ -1,5 +1,8 @@
 2010-11-01  Glenn Morris  <rgm@gnu.org>
 
+	* nnimap.el: Require nnmail, and gnus-sum when compiling.
+	(nnimap-keepalive): Use gnus-float-time.
+
 	* mail-source.el (nnheader-message, gnus-float-time): Autoload.
 	(mail-source-delete-crash-box): Use gnus-float-time.
 
--- a/lisp/gnus/nnimap.el	Sun Oct 31 18:56:28 2010 -0700
+++ b/lisp/gnus/nnimap.el	Sun Oct 31 19:07:01 2010 -0700
@@ -44,6 +44,10 @@
 (require 'utf7)
 (require 'tls)
 (require 'parse-time)
+(require 'nnmail)
+
+(eval-when-compile
+  (require 'gnus-sum))
 
 (autoload 'auth-source-forget-user-or-password "auth-source")
 (autoload 'auth-source-user-or-password "auth-source")
@@ -287,7 +291,7 @@
 	(with-current-buffer buffer
 	  (when (and nnimap-object
 		     (nnimap-last-command-time nnimap-object)
-		     (> (time-to-seconds
+		     (> (gnus-float-time
 			 (time-subtract
 			  now
 			  (nnimap-last-command-time nnimap-object)))