From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47032 Path: main.gmane.org!not-for-mail From: Danny Siu Newsgroups: gmane.emacs.gnus.general Subject: Re: Tell the Agent to download all articles as they are read Date: Mon, 07 Oct 2002 11:55:20 +0800 Organization: Adobe Systems Incorporated Sender: owner-ding@hpc.uh.edu Message-ID: References: <87vg4jvcf6.fsf@crybaby.cs.uni-dortmund.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1033963001 16227 127.0.0.1 (7 Oct 2002 03:56:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 7 Oct 2002 03:56:41 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17yP0a-0004Db-00 for ; Mon, 07 Oct 2002 05:56:40 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17yP0O-00043Y-00; Sun, 06 Oct 2002 22:56:28 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 06 Oct 2002 22:57:09 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id WAA11290 for ; Sun, 6 Oct 2002 22:56:56 -0500 (CDT) Original-Received: (qmail 27172 invoked by alias); 7 Oct 2002 03:56:09 -0000 Original-Received: (qmail 27167 invoked from network); 7 Oct 2002 03:56:08 -0000 Original-Received: from smtp-relay-1.adobe.com (192.150.11.1) by gnus.org with SMTP; 7 Oct 2002 03:56:08 -0000 Original-Received: from inner-relay-2.corp.adobe.com (inner-relay-2 [153.32.1.52]) by smtp-relay-1.adobe.com (8.12.3/8.12.3) with ESMTP id g973wFFE000884 for ; Sun, 6 Oct 2002 20:58:15 -0700 (PDT) Original-Received: from mailsj-v1.corp.adobe.com (mailsj-dev.corp.adobe.com [153.32.1.192]) by inner-relay-2.corp.adobe.com (8.12.3/8.12.3) with ESMTP id g973r4vW016462 for ; Sun, 6 Oct 2002 20:53:04 -0700 (PDT) Original-Received: from GIGI.corp.adobe.com ([130.248.43.44]) by mailsj-v1.corp.adobe.com (Netscape Messaging Server 4.15 v1 Jul 11 2001 16:32:57) with ESMTP id H3LEWO00.ANT for ; Sun, 6 Oct 2002 20:55:36 -0700 Original-To: ding@gnus.org X-Mailer: Oort Gnus v0.08 X-Location: San Jose, CA X-Face: fHBvLrQQW(GRz#RNTAN(,')p8NGv}{6dMh\:?%*D\+8hgkiA_dub1@\,Y"r5'a8C(8e~cGG(WFTU\OlAqI[B?V7m'ZGkquvZ/d k~E"A"@WK;0mLF&\%W1kIC]O"z#/>YNUefE1%5/NUX;ml]@$nW;05Z9uZ/CqTz]A)+`1ROuF~||pG= k>Zi@hE- X-Emacs: 21.2.1 Mail-Followup-To: ding@gnus.org In-Reply-To: <87vg4jvcf6.fsf@crybaby.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Thu, 03 Oct 2002 16:12:45 +0200") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-msvc-nt5.0.2195) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47032 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47032 I got the following when I added gnus-agent-fetch-selected-article to gnus-select-article-hook=20 Debugger entered--Lisp error: (error "Selecting deleted buffer") gnus-agent-enter-history("4.3.2.7.2.20021004171722.017f3e90@mailjapan.pac= .adobe.com" (("nnimap+mcmug:Admin/Admin" . 240)) 731130) gnus-agent-fetch-articles("nnimap+mcmug:Admin/Admin" (240)) gnus-agent-fetch-selected-article() run-hooks(gnus-select-article-hook) apply(run-hooks gnus-select-article-hook) gnus-run-hooks(gnus-select-article-hook) gnus-summary-display-article(240) gnus-summary-next-page(nil) * call-interactively(gnus-summary-next-page) Kai Gro=DFjohann writes: Kai> I want the Agent to download an article when I read it. So here's Kai> what I did: Kai> (defun kai-gnus-agent-fetch-article () Kai> (let ((gnus-command-method gnus-current-select-method)) Kai> (gnus-agent-fetch-articles Kai> gnus-newsgroup-name (list gnus-current-article)))) Kai> (add-hook 'gnus-select-article-hook 'kai-gnus-agent-fetch-article) Kai> This seems to work. But I think it's kludgy that I have to bind Kai> gnus-command-method. Kai> What do you think about putting this into Gnus? Kai> kai Kai> PS: After digging around in the source code for a while, I found that Kai> it seems to be normal to let-bind gnus-command-method like this. Kai> Okay. Kai> -- ~/.signature is: umop ap!sdn (Frank Nobis) --=20 Danny Siu