From: Didier Verna <didier@xemacs.org>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: ding@gnus.org
Subject: Re: Don't open closed servers on `g'
Date: Mon, 06 Dec 2010 14:47:20 +0100 [thread overview]
Message-ID: <mux1v5vxbbr.fsf@uzeb.lrde.epita.fr> (raw)
In-Reply-To: <201012061351.11437.tassilo@member.fsf.org> (Tassilo Horn's message of "Mon, 6 Dec 2010 13:51:11 +0100")
Tassilo Horn <tassilo@member.fsf.org> wrote:
> I sometimes close some servers in the *Server* buffer, because I'm not
> interested in getting updates for them right now, for example because
> I'm on a slow network or a server is down and I don't want to
> interrupt Gnus contacting that broken server over and over again.
>
> Unfortunately, when hitting `g' in *Group*, Gnus re-opens all servers
> forcefully. Can that be changed somehow?
You can go to the servers buffer and hit D to deny a server. Gnus
don't try to re-open denied servers when you 'g' in the Groups buffer.
Here's a little hack I use on top of that in order to display groups in
server-status-specific colors:
;; How it works: the advice below adds a `server-status' local variable that
;; can be used in `gnus-group-highlight'. For instance, you can use forms like
;; (eq server-status 'closed) or (eq server-status 'denied) in conjunction
;; with the two following faces:
(defface gnus-group-server-denied-face '((t ()))
"Face used for groups belonging to a denied server."
:group 'gnus-group)
(defface gnus-group-server-closed-face '((t ()))
"Face used for groups belonging to a denied server."
:group 'gnus-group)
(defadvice gnus-group-highlight-line (around server-status activate)
"Add a SERVER-STATUS local variable for use in `gnus-group-highlight'."
(let (server-status)
;; Let's do this outside the let to avoid a load-time warning
(setq server-status (gnus-server-status
(gnus-find-method-for-group
(gnus-group-group-name))))
ad-do-it))
--
Resistance is futile. You will be jazzimilated.
Scientific site: http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com
prev parent reply other threads:[~2010-12-06 13:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-06 12:51 Tassilo Horn
2010-12-06 13:21 ` Lars Magne Ingebrigtsen
2010-12-06 14:25 ` Tassilo Horn
2010-12-06 19:42 ` Lars Magne Ingebrigtsen
2010-12-06 20:17 ` Tassilo Horn
2010-12-06 22:36 ` Lars Magne Ingebrigtsen
2010-12-06 13:47 ` Didier Verna [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mux1v5vxbbr.fsf@uzeb.lrde.epita.fr \
--to=didier@xemacs.org \
--cc=ding@gnus.org \
--cc=tassilo@member.fsf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).