From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59851 Path: main.gmane.org!not-for-mail From: Mark Plaksin Newsgroups: gmane.emacs.gnus.general Subject: Patch: Allow nnrss to be verbose Date: Sat, 19 Feb 2005 13:23:12 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108837475 12964 80.91.229.2 (19 Feb 2005 18:24:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Feb 2005 18:24:35 +0000 (UTC) Original-X-From: ding-owner+M8392@lists.math.uh.edu Sat Feb 19 19:24:35 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1D2ZHK-0005pn-8e for ding-account@gmane.org; Sat, 19 Feb 2005 19:24:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1D2ZGj-0008V6-00; Sat, 19 Feb 2005 12:23:53 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1D2ZGb-0008Uy-00 for ding@lists.math.uh.edu; Sat, 19 Feb 2005 12:23:45 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1D2ZGY-0008Hg-9i for ding@lists.math.uh.edu; Sat, 19 Feb 2005 12:23:42 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1D2ZGW-0008Bu-00 for ; Sat, 19 Feb 2005 19:23:40 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D2ZDD-0005FL-Hl for ding@gnus.org; Sat, 19 Feb 2005 19:20:15 +0100 Original-Received: from water.tss.usg.edu ([168.24.82.53]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Feb 2005 19:20:15 +0100 Original-Received: from happy by water.tss.usg.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Feb 2005 19:20:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: water.tss.usg.edu User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:lrojYw1TokAQWRGK2V7TdTOVMCM= X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-From: ding-owner+m8392@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: main.gmane.org gmane.emacs.gnus.general:59851 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59851 This patch adds nnrss-verbose. When t, nnrss writes to the minibuffer when it requests a feed. Sometimes fetching an RSS feed takes too long and I want to interrupt it. Without this patch, I can't tell which feed it's trying to fetch. I also can't tell that Gnus is trying to fetch an RSS feed--it just looks stuck and I wonder what I'm interrupting when I hit C-g :) --- nnrss.el 2005-01-30 08:16:34.000000000 -0500 +++ ../../gnus/lisp/nnrss.el 2005-02-19 13:17:00.000000000 -0500 @@ -66,6 +66,9 @@ (defvar nnrss-use-local nil) +(defvar nnrss-verbose t + "Write messages when requesting group.") + (defvar nnrss-description-field 'X-Gnus-Description "Field name used for DESCRIPTION. To use the description in headers, put this name into `nnmail-extra-headers'.") @@ -145,6 +148,8 @@ 'nov) (deffoo nnrss-request-group (group &optional server dont-check) + (if nnrss-verbose + (message (concat "nnrss requesting " group "..."))) (setq group (nnrss-decode-group-name group)) (nnrss-possibly-change-group group server) (if dont-check @@ -154,7 +159,10 @@ (nnheader-insert "211 %d %d %d %s\n" nnrss-group-max nnrss-group-min nnrss-group-max (prin1-to-string group) - t))) + t)) + (if nnrss-verbose + (message (concat "nnrss done with " group ".")) + t)) (deffoo nnrss-close-group (group &optional server) t)