gnus-async.el (gnus-html-prefetch-images): Autoload it when compiling; (gnus-async...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 7 Sep 2010 01:15:35 +0000 (01:15 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Tue, 7 Sep 2010 01:15:35 +0000 (01:15 +0000)
lisp/ChangeLog
lisp/gnus-async.el

index 1639e8b..d65ddfd 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-07  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-async.el (gnus-html-prefetch-images): Autoload it when compiling.
+       (gnus-async-article-callback): Fix typo.
+
 2010-09-06  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-html.el (gnus-html-wash-tags): Limit end-tag matching to the
index 434afb6..5b19adc 100644 (file)
@@ -228,6 +228,9 @@ that was fetched."
   `(lambda (arg)
      (gnus-async-article-callback arg ,group ,article ,mark ,summary ,next)))
 
+(eval-when-compile
+  (autoload 'gnus-html-prefetch-images "gnus-html"))
+
 (defun gnus-async-article-callback (arg group article mark summary next)
   "Function called when an async article is done being fetched."
   (save-excursion
@@ -240,7 +243,7 @@ that was fetched."
            (narrow-to-region mark (point-max))
            ;; Prefetch images for the groups that want that.
            (when (fboundp 'gnus-html-prefetch-images)
-             (gnus-async-post-fetch-function summary))
+             (gnus-html-prefetch-images summary))
            (funcall gnus-async-post-fetch-function summary))))
       (gnus-async-with-semaphore
        (setq