Gnus development mailing list
 help / color / mirror / Atom feed
* How many articles - unread + some number as default
@ 2000-05-29  6:06 pixiebob
  2000-08-13 18:06 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: pixiebob @ 2000-05-29  6:06 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 873 bytes --]

I use gnus to read mail, especially for some medium-volume mailing lists.
For the groups into which these mailing lists are split, I keep all old
articles, and I mark "read" articles as dormant.  This way, I can answer
(some large number) to the question of "How many articles from ..." when
entering the group, and I'll most likely see all messages in the threads of
the new messages.

Since the mail groups have > gnus-large-newsgroup messages, I'm *always*
prompted for the number of articles to retrieve.

So I made the following change to gnus-sum.el to support a default of 
[# unread + some constant] in answer to "How many articles from ..."

Would it be possible for someone with more elisp skill than myself to review
the following diff (made from gnus-5.8.2, I think) and add a better hook for
customisation at this point in the code?

Thanks

-Dave Liebreich



[-- Attachment #2: diff of gnus-sum.el --]
[-- Type: text/plain, Size: 965 bytes --]

--- gnus-sum.el.~1~	Fri Dec  3 11:27:20 1999
+++ gnus-sum.el	Sun May 28 13:59:09 2000
@@ -4223,13 +4223,17 @@
 		 ((and (or (<= scored marked) (= scored number))
 		       (numberp gnus-large-newsgroup)
 		       (> number gnus-large-newsgroup))
-		  (let ((input
-			 (read-string
-			  (format
-			   "How many articles from %s (default %d): "
-			   (gnus-limit-string gnus-newsgroup-name 35)
-			   number))))
-		    (if (string-match "^[ \t]*$" input) number input)))
+		  (condition-case ()
+		      (cond
+		       ((numberp davel-gnus-num-articles)
+			(+ davel-gnus-num-articles (length gnus-newsgroup-unreads)))
+		       (t (let (input
+				((read-string
+				   (format
+				   "How many articles from %s (default %d): "
+				   (gnus-limit-string gnus-newsgroup-name 35)
+				   number))
+				  (if (string-match "^[ \t]*$" input) number input))))))))
 		 ((and (> scored marked) (< scored number)
 		       (> (- scored number) 20))
 		  (let ((input

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

end of thread, other threads:[~2000-08-14  1:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-29  6:06 How many articles - unread + some number as default pixiebob
2000-08-13 18:06 ` Lars Magne Ingebrigtsen
2000-08-14  1:36   ` Dave Liebreich

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