Gnus development mailing list
 help / color / mirror / Atom feed
From: Lloyd Zusman <ljz@asfast.com>
Subject: Re: A solution that's better than my ugly hack?
Date: Mon, 13 Jan 2003 14:26:52 -0500	[thread overview]
Message-ID: <86vg0sdf5v.fsf@asfast.com> (raw)
In-Reply-To: <m3ptr0q2o7.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Mon, 13 Jan 2003 20:18:16 +0100")

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Lloyd Zusman <ljz@asfast.com> 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



  reply	other threads:[~2003-01-13 19:26 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-01 22:23 Concerning marks and the back end Lloyd Zusman
2003-01-02 16:57 ` Kai Großjohann
2003-01-02 18:23   ` Lloyd Zusman
2003-01-02 18:46     ` Lars Magne Ingebrigtsen
2003-01-03  2:23       ` Lloyd Zusman
2003-01-03  2:45         ` Simon Josefsson
2003-01-03  2:56           ` Lloyd Zusman
2003-01-03  3:01             ` Lloyd Zusman
2003-01-03  4:11               ` Simon Josefsson
2003-01-03  4:59                 ` Lloyd Zusman
2003-01-03 14:57                   ` Simon Josefsson
2003-01-04 18:23                   ` Lloyd Zusman
2003-01-13 18:47                     ` A solution that's better than my ugly hack? Lloyd Zusman
2003-01-13 18:53                       ` Lars Magne Ingebrigtsen
2003-01-13 19:00                         ` Lloyd Zusman
2003-01-13 19:18                           ` Lars Magne Ingebrigtsen
2003-01-13 19:26                             ` Lloyd Zusman [this message]
2003-01-13 19:30                               ` Lars Magne Ingebrigtsen
2003-01-13 19:33                                 ` Lloyd Zusman
2003-01-13 21:04                                 ` Lloyd Zusman
2003-01-13 19:32                               ` Lloyd Zusman
2003-01-03 17:54         ` Concerning marks and the back end Kai Großjohann
2003-01-03 18:20           ` Lloyd Zusman
2003-01-03 17:53     ` Kai Großjohann
2003-01-03 18:15       ` Lloyd Zusman
2003-01-03 19:18         ` Kai Großjohann
2003-01-03 19:34           ` Lloyd Zusman
2003-01-03 19:43             ` Lloyd Zusman
2003-01-03 21:03               ` Kai Großjohann
2003-01-03 21:24                 ` Lloyd Zusman
2003-01-04 14:52                   ` Kai Großjohann
2003-01-04 16:19                     ` Lloyd Zusman
2003-01-03 20:17             ` Lars Magne Ingebrigtsen
2003-01-03 20:41               ` Lloyd Zusman
2003-01-03 20:45                 ` Lars Magne Ingebrigtsen
2003-01-03 20:52                   ` Lloyd Zusman
2003-01-03 21:05                     ` Kai Großjohann
2003-01-03 21:05                 ` Kai Großjohann
2003-01-04  4:50                   ` Lloyd Zusman
2003-01-03 20:53             ` Paul Jarc
2003-01-03 20:58               ` Lloyd Zusman
2003-01-03 21:02             ` Kai Großjohann
2003-01-02 19:14 ` Simon Josefsson
2003-01-03  2:25   ` Lloyd Zusman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86vg0sdf5v.fsf@asfast.com \
    --to=ljz@asfast.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).