]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor bug fixes for gnus-sync.el.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 13 Aug 2010 10:58:21 +0000 (10:58 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 13 Aug 2010 10:58:21 +0000 (10:58 +0000)
From Ted Zlatanov <tzz@lifelogs.com>.

* gnus-sync.el (gnus-sync-unload-hook, gnus-sync-install-hooks): Don't
read the sync on get-new-news.

lisp/gnus/ChangeLog
lisp/gnus/gnus-sync.el

index 9a5bd7bc144c3405460c1fc16b5af2c2b990ec0a..b61eb330792798ddfbea56d35136574a4b902f91 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 153217ef38c92772f8bb6feacd22cc74243106f5..bd889576dc0a908d4bcd6ff910cde1669929f422 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))