From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74754 Path: news.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.gnus.general Subject: Re: Don't open closed servers on `g' Date: Mon, 06 Dec 2010 14:47:20 +0100 Organization: The Gnus Project Message-ID: References: <201012061351.11437.tassilo@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291643296 2086 80.91.229.12 (6 Dec 2010 13:48:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 13:48:16 +0000 (UTC) Cc: ding@gnus.org To: Tassilo Horn Original-X-From: ding-owner+M23110@lists.math.uh.edu Mon Dec 06 14:48:11 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PPbQI-0008VT-Dg for ding-account@gmane.org; Mon, 06 Dec 2010 14:48:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PPbQ4-0003ya-DZ; Mon, 06 Dec 2010 07:47:56 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PPbQ2-0003yP-R2 for ding@lists.math.uh.edu; Mon, 06 Dec 2010 07:47:54 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PPbQ1-0004nj-5T for ding@lists.math.uh.edu; Mon, 06 Dec 2010 07:47:54 -0600 Original-Received: from smtp.lrde.epita.fr ([62.39.139.2] helo=kualalumpur.lrde.epita.fr) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PPbQ0-0001OB-00 for ; Mon, 06 Dec 2010 14:47:52 +0100 Original-Received: from uzeb.lrde.epita.fr ([192.168.101.53] ident=postfix) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.63) (envelope-from ) id 1PPbPU-0001PW-UZ; Mon, 06 Dec 2010 14:47:21 +0100 Original-Received: by uzeb.lrde.epita.fr (Postfix, from userid 17030) id E00A31EC127; Mon, 6 Dec 2010 14:47:20 +0100 (CET) In-Reply-To: <201012061351.11437.tassilo@member.fsf.org> (Tassilo Horn's message of "Mon, 6 Dec 2010 13:51:11 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b29 (linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUqEAavpYhwXzWWjF3l 2MRKNR7U4GQWAAACcElEQVQ4jWVUS7LjIAzUOMV++Ly9LYV9DOEAvDB7R5Tuf5URdpyXqWFhl9W0 QN2SAXRN83jCxYdqz7VHfv3eX88jFNpYR+RmYDM5Ia7hH8azGOgWCUXI2rZTwPqcaDWGbPYZN7Oe DBHZKE/bOrZVv12CEupIZUR6mrgdy5+UwRDK/voC2tezhh8g2jPeavxkuPsZt8Et9Q3kRzjjNjz6 5xnvRNZWXN/Ac/kAbFp+GPePuC0/AJ6AHVnK83/GfmzCHdg4vgEbmYMtUw21gZCfU9DsoT2iKt1t MkcqzNEFm7benMouPRS4KwXkYtGFUBPvQERbdh1Bro9e7s2KNCegCdZilt3ByeZ0f6ir7WueoshS YIiidlBMV71oay6uThlOlt0oTqxAVQed3jXn1SOvXoHuWKUahrghn7ce1ZIVOGd+afhAzZEH4H0C g9zp5TdS9ZhzJAWBOdPokNpqTmwRKd86ZQLChLtP1cXIqwIpUs8JMJ1A2kxckvYjknYB8JoPoH0r wLoLadWDAJeCeIjuDQvqIj9S9YSFwqulRHgA2swICaPwKK/mWQZAlDljBIxROqpLFFRdw+O+iAaB CkqP91bVxbSnGmMCohrqh9x1WrRAFGbMYlgBMV2Z1zFGTgHNlUTxWS0T1F1jJOvwVimYDM1Qhlhx B/QQ9e2COnDIoEQtNtO4sd+0fyjiPKFA1FEjpD9aZB19pZvRTLeLzrdEg8u3IYz7XwINb3yboJgI qmrbYNtnngk40qySmMRTWZrbw6N0kIw3lUQBxqXV40cjSGCIZi2RPSI/X1cCiUs03KOAiqyi6JjX ArBpgeQ3Id7+Ar0EyF9uY6I5AAAAAElFTkSuQmCC X-Face: Yege`pKP,!,TY._G%P!T$iD.!!%!G_PD}#}*d|*3bC^AZp6J5s"")#]>]lPwoiwa{PI}v5;N~1)qQZR */rOs"B"^n68&DHpKu[@2mF&Uc{*wt]m!]f\Y-TfP X-Attribution: dvl X-Web: http://www.gnus.org X-Url: http://www.gnus.org X-Home-Page: http://www.gnus.org Mail-Copies-To: never X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74754 Archived-At: Tassilo Horn 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