aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-10-31 18:56:28 -0700
committerGlenn Morris2010-10-31 18:56:28 -0700
commit89cff4667b8b908a8b74e4b5862647472f91f648 (patch)
tree74887ee9f5f80cc660e9e298aeb4ce0c98f636ef
parent26205de35a42e752b2a90adfb55365ee4485f1bf (diff)
downloademacs-89cff4667b8b908a8b74e4b5862647472f91f648.tar.gz
emacs-89cff4667b8b908a8b74e4b5862647472f91f648.zip
Silence mail-source.el compilation.
* lisp/gnus/mail-source.el (nnheader-message, gnus-float-time): Autoload. (mail-source-delete-crash-box): Use gnus-float-time.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/mail-source.el6
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 2c4e693f72c..c3b747bc589 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,7 +1,12 @@
12010-11-01 Glenn Morris <rgm@gnu.org> 12010-11-01 Glenn Morris <rgm@gnu.org>
2 2
3 * mail-source.el (nnheader-message, gnus-float-time): Autoload.
4 (mail-source-delete-crash-box): Use gnus-float-time.
5
3 * gnus-dired.el (gnus-completing-read): Autoload. 6 * gnus-dired.el (gnus-completing-read): Autoload.
7
4 * mm-view.el (gnus-rescale-image): Autoload. 8 * mm-view.el (gnus-rescale-image): Autoload.
9
5 * mm-decode.el (gnus-completing-read, gnus-blocked-images): Autoload. 10 * mm-decode.el (gnus-completing-read, gnus-blocked-images): Autoload.
6 11
7 * gnus.el (gnus-sloppily-equal-method-parameters): Move defn before use. 12 * gnus.el (gnus-sloppily-equal-method-parameters): Move defn before use.
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el
index 1bd5be74013..137a18f27eb 100644
--- a/lisp/gnus/mail-source.el
+++ b/lisp/gnus/mail-source.el
@@ -501,6 +501,8 @@ See `mail-source-bind'."
501 (t 501 (t
502 value))) 502 value)))
503 503
504(autoload 'nnheader-message "nnheader")
505
504(defun mail-source-fetch (source callback &optional method) 506(defun mail-source-fetch (source callback &optional method)
505 "Fetch mail from SOURCE and call CALLBACK zero or more times. 507 "Fetch mail from SOURCE and call CALLBACK zero or more times.
506CALLBACK will be called with the name of the file where (some of) 508CALLBACK will be called with the name of the file where (some of)
@@ -594,6 +596,8 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile)
594 0) 596 0)
595 (funcall callback mail-source-crash-box info))) 597 (funcall callback mail-source-crash-box info)))
596 598
599(autoload 'gnus-float-time "gnus-util")
600
597(defvar mail-source-incoming-last-checked-time nil) 601(defvar mail-source-incoming-last-checked-time nil)
598 602
599(defun mail-source-delete-crash-box () 603(defun mail-source-delete-crash-box ()
@@ -614,7 +618,7 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile)
614 ;; Don't check for old incoming files more than once per day to 618 ;; Don't check for old incoming files more than once per day to
615 ;; save a lot of file accesses. 619 ;; save a lot of file accesses.
616 (when (or (null mail-source-incoming-last-checked-time) 620 (when (or (null mail-source-incoming-last-checked-time)
617 (> (time-to-seconds 621 (> (gnus-float-time
618 (time-since mail-source-incoming-last-checked-time)) 622 (time-since mail-source-incoming-last-checked-time))
619 (* 24 60 60))) 623 (* 24 60 60)))
620 (setq mail-source-incoming-last-checked-time (current-time)) 624 (setq mail-source-incoming-last-checked-time (current-time))