From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/71951 Path: news.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.gnus.general Subject: Re: Better error reporting and stuff on startup Date: Mon, 27 Sep 2010 09:21:15 +0200 Organization: The Gnus Project Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285572131 8344 80.91.229.12 (27 Sep 2010 07:22:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Sep 2010 07:22:11 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20324@lists.math.uh.edu Mon Sep 27 09:22:07 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 1P082C-0005E0-FG for ding-account@gmane.org; Mon, 27 Sep 2010 09:22:00 +0200 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 1P0827-0006T0-5v; Mon, 27 Sep 2010 02:21:55 -0500 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 1P0825-0006Sg-7n for ding@lists.math.uh.edu; Mon, 27 Sep 2010 02:21:53 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P0823-0000vM-LA for ding@lists.math.uh.edu; Mon, 27 Sep 2010 02:21:53 -0500 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 1P0822-00056g-00 for ; Mon, 27 Sep 2010 09:21:50 +0200 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 1P081T-0000wZ-JI for ding@gnus.org; Mon, 27 Sep 2010 09:21:15 +0200 Original-Received: by uzeb.lrde.epita.fr (Postfix, from userid 17030) id 600241EC140; Mon, 27 Sep 2010 09:21:15 +0200 (CEST) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Sun, 26 Sep 2010 18:31:32 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b29 (linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEV+NwtODQD4//z9/Pr9 //2hZznx5Nn7/v31ZT2MAAACUklEQVQ4jVWUTY7jIBCFiwWzphaeA5BI3nc5HCCgyRZrhNctecwB 0pG4/rzCTjpdUmLgc736AUzpsJNI8v6c2mH0BGNS8OjjH0CXbmOKz/kbkHRr+INFEXkBrE2dJun2 HuMA6SfwjzhB6rD4A6QbsmrtPTgE/Nc0Xb1vY7uPYxvvTw/xoYYPj0p8u+PhO5igGWYeVizA+dbe wHRh5kF8C8gotQOozQMZ/itTXQXs9mpJnGkg/i1S67IKStrBlIKj4oxbQ8l2qa8Cp1Sdndlx/cxU yqLAn0U+/BiYjSOTyZA18KnkHwoaAMGHh9kSWbI7uPpHMM5Yw4hUiMg4S77vnIRigXgwJRMTRjQi MsCGOabs9ImKiLQF/hQ2IkdIwJLpgBU0OBSdIF8EcEbXSbA95wAlBcQZJKsrwL3FS1mKNpHUrMnZ AcR2Qui6Dawh1QppnfLHo0FFwQwpYuTr2GaK15N8ll8AlFl1bEFvQK/dYQmbMTZzQR3WDBlg9KeL neu6sfpDq6BT6oGqPxFiwW5okwwAtqQDKOle6Ktah7Map9BDLhoO/bOaKM2MJgxQa3FDUHTOQQhh iit79TEihZLRVmMZEn2isZpkDccmQ89BNRdyBdmd44ZdK7NxWRO2qgZj+qdHqcpWl7rVWuYupyDp wcNvXVdZg9SyFS4a5jpFwdH7CP0e4aitUNhQR79aOP+yXxh5Wj+J/UL4se233PvTDm6t+W+yj5MC fAZ2l379+ltjSzgl+7cDk0OqHUD2e/pc3sdJwbR/JKb09nwB+QZ6B2H/AYRE8mvKnIFsAAAAAElF TkSuQmCC X-Face: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:71951 Archived-At: Lars Magne Ingebrigtsen wrote: > No, most of them are just that one of the 13 servers you're connecting > to didn't respond. It's nice to know that it happened, but it's not an > exceptional situation. I'm not convinced, but anyway here's another idea: there are other ways (than messages) to convey information to the user. For instance, I use a hack that will display every group in the *Group* buffer in red if the server denied or closed the connection. Here goes: ;; Highlight group buffer lines according to the server status. With this, you ;; can choose to fontify group lines according the current status of the ;; group's server. Caveat: a server status change will not be immediately ;; visible in the group buffer. It has to be updated, for instance by getting ;; new mail. ;; 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