Gnus development mailing list
 help / color / mirror / Atom feed
* Tell the Agent to download all articles as they are read
@ 2002-10-03 14:12 Kai Großjohann
  2002-10-03 14:39 ` Kai Großjohann
  2002-10-07  3:55 ` Danny Siu
  0 siblings, 2 replies; 18+ messages in thread
From: Kai Großjohann @ 2002-10-03 14:12 UTC (permalink / raw)


I want the Agent to download an article when I read it.  So here's
what I did:

(defun kai-gnus-agent-fetch-article ()
  (let ((gnus-command-method gnus-current-select-method))
    (gnus-agent-fetch-articles
     gnus-newsgroup-name
     (list gnus-current-article))))
(add-hook 'gnus-select-article-hook 'kai-gnus-agent-fetch-article)

This seems to work.  But I think it's kludgy that I have to bind
gnus-command-method.

What do you think about putting this into Gnus?

kai

PS: After digging around in the source code for a while, I found that
    it seems to be normal to let-bind gnus-command-method like this.
    Okay.
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2002-10-15  9:22 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03 14:12 Tell the Agent to download all articles as they are read Kai Großjohann
2002-10-03 14:39 ` Kai Großjohann
2002-10-03 15:26   ` Wes Hardaker
2002-10-03 15:33     ` Kai Großjohann
2002-10-03 23:51       ` Wes Hardaker
2002-10-04  6:34         ` Kai Großjohann
2002-10-04 20:28           ` David S Goldberg
2002-10-05 21:31             ` Kai Großjohann
2002-10-05 21:32       ` Kai Großjohann
2002-10-07  3:55 ` Danny Siu
2002-10-08 17:50   ` Kai Großjohann
2002-10-11  4:15     ` Danny Siu
2002-10-11  8:35       ` Kai Großjohann
2002-10-11  4:15     ` Danny Siu
2002-10-14  9:34     ` Danny Siu
2002-10-14 12:14       ` Kai Großjohann
2002-10-15  6:14         ` Danny Siu
2002-10-15  9:22           ` Kai Großjohann

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).