Commit 79993b19 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

Minor bug fixes for gnus-sync.el.

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.
parent bbe276f2
......@@ -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.
......
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment