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 @@ ...@@ -2,6 +2,9 @@
Minor bug fixes for gnus-sync.el. 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 * gnus-sync.el (gnus-sync-save): Define `variable' so the compiler is
quiet. quiet.
......
...@@ -195,14 +195,14 @@ synchronized, I believe). Also see `gnus-variable-list'." ...@@ -195,14 +195,14 @@ synchronized, I believe). Also see `gnus-variable-list'."
(defun gnus-sync-install-hooks () (defun gnus-sync-install-hooks ()
"Install the sync hooks." "Install the sync hooks."
(interactive) (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-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 () (defun gnus-sync-unload-hook ()
"Uninstall the sync hooks." "Uninstall the sync hooks."
(interactive) (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-save-newsrc-hook 'gnus-sync-save)
(remove-hook 'gnus-read-newsrc-el-hook 'gnus-sync-read)) (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