Minor bug fixes for gnus-sync.el.
authorTed Zlatanov <tzz@lifelogs.com>
Thu, 12 Aug 2010 20:45:56 +0000 (15:45 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Thu, 12 Aug 2010 20:45:56 +0000 (15:45 -0500)
* gnus-sync.el (gnus-sync-unload-hook, gnus-sync-install-hooks): Don't
read the sync on get-new-news.

lisp/ChangeLog
lisp/gnus-sync.el

index 3f08fbc..cfd6c9d 100644 (file)
@@ -2,6 +2,9 @@
 
        Minor bug fixes for gnus-sync.el.
 
+       * gnus-sync.el (gnus-sync-unload-hook, gnus-sync-install-hooks): Don't
+       read the sync on get-new-news.
+
        * gnus-sync.el (gnus-sync-save): Define `variable' so the compiler is
        quiet.
 
index 153217e..bd88957 100644 (file)
@@ -195,14 +195,14 @@ synchronized, I believe).  Also see `gnus-variable-list'."
 (defun gnus-sync-install-hooks ()
   "Install the sync hooks."
   (interactive)
-  (add-hook 'gnus-get-new-news-hook 'gnus-sync-read)
+  ;; (add-hook 'gnus-get-new-news-hook 'gnus-sync-read)
   (add-hook 'gnus-save-newsrc-hook 'gnus-sync-save)
-  (add-hook 'gnus-read-newsrc-el-hook 'gnus-sync-read))
+  (add-hook 'gnus-read-newsrc-el-hoo4a 'gnus-sync-read))
 
 (defun gnus-sync-unload-hook ()
   "Uninstall the sync hooks."
   (interactive)
-  (remove-hook 'gnus-get-new-news-hook 'gnus-sync-read)
+  ;; (remove-hook 'gnus-get-new-news-hook 'gnus-sync-read)
   (remove-hook 'gnus-save-newsrc-hook 'gnus-sync-save)
   (remove-hook 'gnus-read-newsrc-el-hook 'gnus-sync-read))