lisp/gnus/gnus-group.el (gnus-group-suspend): Close all backends

This commit is contained in:
Lars Ingebrigtsen 2015-01-25 12:18:51 +00:00 committed by Katsumi Yamaoka
parent 407e6beeb3
commit f67446455f
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2015-01-25 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-group.el (gnus-group-suspend): Close all backends.
2015-01-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nntp.el (nntp-send-authinfo): Error out if the password is wrong.

View file

@ -4312,6 +4312,11 @@ The hook `gnus-suspend-gnus-hook' is called before actually suspending."
(gnus-kill-buffer buf)))
(setq gnus-backlog-articles nil)
(gnus-kill-gnus-frames)
;; Closing all the backends is useful (for instance) when when the
;; IP addresses have changed and you need to reconnect.
(dolist (elem gnus-opened-servers)
(gnus-close-server (car elem))
(setcar (cdr elem) 'closed))
(when group-buf
(bury-buffer group-buf)
(delete-windows-on group-buf t))))