poppyer <[EMAIL PROTECTED]> writes:

> I have a NNTP server, which is not so stable, and I need to close/reopen
> it frequently. Now each time I need to use ^ to enter server view and
> C/O keys, which is very inconvenient. 
>
> I intend to rebind the C/O keys in *Group* view, but I don't know how to get
> the SERVER related to a line in *Group* view. Any idea?

(gnus-group-group-name) will return the (full?) name of the group on the
current line; you can then call `gnus-group-server' on that.  So you're
looking for something like

(defun (bounce-server)
  (interactive)
  (let ((server (gnus-group-server (gnus-group-group-name))))
    (progn
     (gnus-server-close-server server)
     (gnus-server-open-server server))))

  --dzm
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to