From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49179 Path: main.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.emacs.gnus.general Subject: Re: A solution that's better than my ugly hack? Date: Mon, 13 Jan 2003 14:26:52 -0500 Organization: FreeBSD/Linux Hippopotamus Preserve Sender: owner-ding@hpc.uh.edu Message-ID: <86vg0sdf5v.fsf@asfast.com> References: <86fzsc4ii2.fsf@asfast.com> <84k7hnjxqi.fsf@lucy.cs.uni-dortmund.de> <86y9638l7i.fsf@asfast.com> <86ptrfc6oy.fsf@asfast.com> <86hecrc56e.fsf@asfast.com> <86el7vc4xw.fsf@asfast.com> <8665t6de1c.fsf@asfast.com> <8665t4bwp2.fsf@asfast.com> <8665ssevka.fsf_-_@asfast.com> <861y3geuyx.fsf@asfast.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042486042 1454 80.91.224.249 (13 Jan 2003 19:27:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2003 19:27:22 +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 18YAEx-0000Mr-00 for ; Mon, 13 Jan 2003 20:27:20 +0100 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 18YAEu-0001JN-00; Mon, 13 Jan 2003 13:27:16 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 13 Jan 2003 13:28:12 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id NAA02644 for ; Mon, 13 Jan 2003 13:27:56 -0600 (CST) Original-Received: (qmail 64969 invoked by alias); 13 Jan 2003 19:26:54 -0000 Original-Received: (qmail 64964 invoked from network); 13 Jan 2003 19:26:53 -0000 Original-Received: from home.acholado.net (HELO home) (Potamus@216.27.138.216) by 66.230.238.6 with SMTP; 13 Jan 2003 19:26:53 -0000 Original-Received: from localhost (localhost [127.0.0.1]) (uid 1001) by home with local; Mon, 13 Jan 2003 14:26:52 -0500 Original-To: ding@gnus.org X-Face: "!ga1s|?LNLE3MeeeEYs(%LIl9q[xV9!j4#xf4!**BFW_ihlOb;:Slb>)vy>CJM (Lars Magne Ingebrigtsen's message of "Mon, 13 Jan 2003 20:18:16 +0100") User-Agent: Gnus/5.090011 (Oort Gnus v0.11) XEmacs/21.4 (Common Lisp, i386-debian-linux) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49179 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49179 Lars Magne Ingebrigtsen writes: > Lloyd Zusman writes: > >> But unless I'm missing something, it looks like this function only gets >> applied to the list of unread articles. Is that correct? I think that >> I would need a similar function that would get applied to the list of >> already-read articles. > > Yes, and that doesn't quite line up with the documentation of the > variable. > > I'll apply the following patch: Thank you! This looks like it would do the trick. And this brings up one more question: for the list of articles that gets passed to `gnus-alter-articles-to-read-function', how do I tell which of these articles are unread, and which are already read? Is there perhaps a function I can call with an article number as an argument which will tell me if it's read/unread/whatever? Or are there appropriate hashtables that I can access with the article number as a key? Or ... ??? > *** gnus-sum.el.~6.283.~ Mon Jan 13 19:35:35 2003 > --- gnus-sum.el Mon Jan 13 20:17:27 2003 > *************** > *** 5212,5221 **** > (setq gnus-newsgroup-unselected > (gnus-sorted-difference gnus-newsgroup-unreads articles)) > (when gnus-alter-articles-to-read-function > ! (setq gnus-newsgroup-unreads > (sort > (funcall gnus-alter-articles-to-read-function > ! gnus-newsgroup-name gnus-newsgroup-unreads) > '<))) > articles))) > > --- 5212,5221 ---- > (setq gnus-newsgroup-unselected > (gnus-sorted-difference gnus-newsgroup-unreads articles)) > (when gnus-alter-articles-to-read-function > ! (setq articles > (sort > (funcall gnus-alter-articles-to-read-function > ! gnus-newsgroup-name articles) > '<))) > articles))) > > > > -- > (domestic pets only, the antidote for overdose, milk.) > larsi@gnus.org * Lars Magne Ingebrigtsen > -- Lloyd Zusman ljz@asfast.com