(when (stringp gnus-command-method)
(setq gnus-command-method (gnus-server-to-method gnus-command-method)))
(funcall (gnus-get-function gnus-command-method 'close-server)
- (nth 1 gnus-command-method)))
+ (nth 1 gnus-command-method)
+ (nthcdr 2 gnus-command-method)))
(defun gnus-request-list (gnus-command-method)
"Request the active file from GNUS-COMMAND-METHOD."
nnbabyl-mbox-file)
t)))
-(deffoo nnbabyl-close-server (&optional server)
+(deffoo nnbabyl-close-server (&optional server _defs)
;; Restore buffer mode.
(when (and (nnbabyl-server-opened)
nnbabyl-previous-buffer-mode)
(setq result (cdr (cadr elem))))))
result))
-(deffoo nnimap-close-server (&optional server)
- (when (nnoo-change-server 'nnimap server nil)
+(deffoo nnimap-close-server (&optional server defs)
+ (when (nnoo-change-server 'nnimap server defs)
(ignore-errors
(delete-process (get-buffer-process (nnimap-buffer))))
(nnoo-close-server 'nnimap server)
nnmbox-mbox-file)
t)))
-(deffoo nnmbox-close-server (&optional server)
+(deffoo nnmbox-close-server (&optional server _defs)
(when (buffer-live-p nnmbox-mbox-buffer)
(kill-buffer nnmbox-mbox-buffer))
(nnoo-close-server 'nnmbox server)
(deffoo nnregistry-server-opened (server)
gnus-registry-enabled)
-(deffoo nnregistry-close-server (server)
+(deffoo nnregistry-close-server (server &optional defs)
t)
(deffoo nnregistry-status-message (server)
(or (nntp-find-connection nntp-server-buffer)
(nntp-open-connection nntp-server-buffer)))))
-(deffoo nntp-close-server (&optional server)
+(deffoo nntp-close-server (&optional server defs)
+ (nnoo-change-server 'nntp server defs)
(nntp-possibly-change-group nil server t)
(let ((process (nntp-find-connection nntp-server-buffer)))
(while process
(nnheader-report 'nnweb "Fetched article %s" article)
(cons group (and (numberp article) article))))))
-(deffoo nnweb-close-server (&optional server)
+(deffoo nnweb-close-server (&optional server _defs)
(when (and (nnweb-server-opened server)
(gnus-buffer-live-p nnweb-buffer))
(with-current-buffer nnweb-buffer