diff options
| author | Lars Ingebrigtsen | 2015-01-25 12:18:51 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2015-01-25 12:18:51 +0000 |
| commit | f67446455fc0ec59f5c25c90a8783e571b60dc8f (patch) | |
| tree | aef69cc5af4313887b8e1b7f2b52db0533d78d41 | |
| parent | 407e6beeb3c37947c7c92bf0d230973bf133afde (diff) | |
| download | emacs-f67446455fc0ec59f5c25c90a8783e571b60dc8f.tar.gz emacs-f67446455fc0ec59f5c25c90a8783e571b60dc8f.zip | |
lisp/gnus/gnus-group.el (gnus-group-suspend): Close all backends
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-group.el | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 5a61a211661..08e904adf48 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2015-01-25 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus-group.el (gnus-group-suspend): Close all backends. | ||
| 4 | |||
| 1 | 2015-01-15 Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | 2015-01-15 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * nntp.el (nntp-send-authinfo): Error out if the password is wrong. | 7 | * nntp.el (nntp-send-authinfo): Error out if the password is wrong. |
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el index f3dcc40b8c4..dc11442656d 100644 --- a/lisp/gnus/gnus-group.el +++ b/lisp/gnus/gnus-group.el | |||
| @@ -4312,6 +4312,11 @@ The hook `gnus-suspend-gnus-hook' is called before actually suspending." | |||
| 4312 | (gnus-kill-buffer buf))) | 4312 | (gnus-kill-buffer buf))) |
| 4313 | (setq gnus-backlog-articles nil) | 4313 | (setq gnus-backlog-articles nil) |
| 4314 | (gnus-kill-gnus-frames) | 4314 | (gnus-kill-gnus-frames) |
| 4315 | ;; Closing all the backends is useful (for instance) when when the | ||
| 4316 | ;; IP addresses have changed and you need to reconnect. | ||
| 4317 | (dolist (elem gnus-opened-servers) | ||
| 4318 | (gnus-close-server (car elem)) | ||
| 4319 | (setcar (cdr elem) 'closed)) | ||
| 4315 | (when group-buf | 4320 | (when group-buf |
| 4316 | (bury-buffer group-buf) | 4321 | (bury-buffer group-buf) |
| 4317 | (delete-windows-on group-buf t)))) | 4322 | (delete-windows-on group-buf t)))) |