Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-large-newsgroup for ephemeral groups
@ 2003-04-23 19:31 Reiner Steib
  2003-04-24 11:43 ` Kai Großjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Reiner Steib @ 2003-04-23 19:31 UTC (permalink / raw)


Hi,

I've set `gnus-large-newsgroup' to nil.  I see the number of unread
articles in the Group buffer so I can use `42 RET' if I don't want to
see all.  

But when I click on a link like
news://news.gmane.org/gmane.emacs.gnus.general I definitively don't
want to fetch 50000+ headers.

With the following patch, different settings for ephemeral and regular
groups are possible, e.g.

(setq gnus-large-newsgroup nil
      gnus-fetch-old-headers t
      gnus-large-ephemeral-newsgroup 100
      gnus-fetch-old-ephemeral-headers nil)

--8<---------------cut here---------------start------------->8---
--- gnus-group.el.~6.109.~	Fri Apr  4 14:02:08 2003
+++ gnus-group.el	Wed Apr 23 21:24:01 2003
@@ -1996,7 +1996,9 @@
     (if request-only
 	group
       (condition-case ()
-	  (when (gnus-group-read-group t t group select-articles)
+	  (when (let ((gnus-large-newsgroup gnus-large-ephemeral-newsgroup)
+		      (gnus-fetch-old-headers gnus-fetch-old-ephemeral-headers))
+		  (gnus-group-read-group t t group select-articles))
 	    group)
 	;;(error nil)
 	(quit
--8<---------------cut here---------------end--------------->8---

[ defcustom of gnus-large-ephemeral-newsgroup and
gnus-fetch-old-ephemeral-headers missing. ]

Is there a more suitable approach for this problem?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




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

* Re: gnus-large-newsgroup for ephemeral groups
  2003-04-23 19:31 gnus-large-newsgroup for ephemeral groups Reiner Steib
@ 2003-04-24 11:43 ` Kai Großjohann
  2003-04-24 18:51   ` Reiner Steib
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2003-04-24 11:43 UTC (permalink / raw)


Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes:

> Is there a more suitable approach for this problem?

I don't think so.  I like your suggestion.
-- 
file-error; Data: (Opening input file no such file or directory ~/.signature)



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

* Re: gnus-large-newsgroup for ephemeral groups
  2003-04-24 11:43 ` Kai Großjohann
@ 2003-04-24 18:51   ` Reiner Steib
  0 siblings, 0 replies; 3+ messages in thread
From: Reiner Steib @ 2003-04-24 18:51 UTC (permalink / raw)


On Thu, Apr 24 2003, Kai Großjohann wrote:

> I like your suggestion.

Added.  See nntp://news.gmane.org/gmane.emacs.gnus.commits/1033 (lisp)
and nntp://news.gmane.org/gmane.emacs.gnus.commits/1034 (texi).

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo--- PGP key available via WWW   http://rsteib.home.pages.de/




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

end of thread, other threads:[~2003-04-24 18:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-23 19:31 gnus-large-newsgroup for ephemeral groups Reiner Steib
2003-04-24 11:43 ` Kai Großjohann
2003-04-24 18:51   ` Reiner Steib

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