Gnus development mailing list
 help / color / mirror / Atom feed
* Sorting summary - cached articles
@ 1996-03-08 20:52 Jack Vinson
  1996-03-09 22:56 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Jack Vinson @ 1996-03-08 20:52 UTC (permalink / raw)



Should cached articles get sorted along with all the rest of them?  Why
doesn't this happen all the time?  I've got some groups where the cached
articles stay at the top and others where the article gets sorted into the
rest of the articles.

I would really like cached articles to stay at the top of the Summary
buffer.  

-- 
Jack Vinson                       jvinson@cheux.ecs.umass.edu
"I Spit on Your Grave"            -- double feature at the drive-in as seen
"I Thumb Through Your Magazines"     from the Qwik-E mart


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

* Re: Sorting summary - cached articles
  1996-03-08 20:52 Sorting summary - cached articles Jack Vinson
@ 1996-03-09 22:56 ` Lars Magne Ingebrigtsen
  1996-03-11 18:31   ` Wes Hardaker
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 1996-03-09 22:56 UTC (permalink / raw)


Jack Vinson <jvinson@cheux.ecs.umass.edu> writes:

> Should cached articles get sorted along with all the rest of them?

Yes.

> Why doesn't this happen all the time?  I've got some groups where
> the cached articles stay at the top and others where the article
> gets sorted into the rest of the articles.

I haven't seen this...  Cached articles should be handled just like
any other articles.  Perhaps the effect you're seeing is just that the
cached articles have so much lower article numbers than the uncached
ones? 

-- 
  "Yes.  The journey through the human heart 
     would have to wait until some other time."


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

* Re: Sorting summary - cached articles
  1996-03-09 22:56 ` Lars Magne Ingebrigtsen
@ 1996-03-11 18:31   ` Wes Hardaker
  1996-03-12  6:08     ` Lars Magne Ingebrigtsen
  1996-03-18 13:24     ` Albrecht Kadlec
  0 siblings, 2 replies; 7+ messages in thread
From: Wes Hardaker @ 1996-03-11 18:31 UTC (permalink / raw)
  Cc: ding

>>>>> "Lars" == Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:

    Lars> Jack Vinson <jvinson@cheux.ecs.umass.edu> writes:
    >> Should cached articles get sorted along with all the rest of
    >> them?

    Lars> Yes.

You know, I've been wanting to have a sort function that checked to
see if something was ticked or cached or whatever (ie, sort based on
article marks).  For instance, I want all my ticked articles to be at
the top.  This of course gets more complex when threads are involved.
Arg.  I haven't looked into writing this function yet...

Wes


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

* Re: Sorting summary - cached articles
  1996-03-11 18:31   ` Wes Hardaker
@ 1996-03-12  6:08     ` Lars Magne Ingebrigtsen
  1996-03-12 16:52       ` Wes Hardaker
  1996-03-18 13:24     ` Albrecht Kadlec
  1 sibling, 1 reply; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 1996-03-12  6:08 UTC (permalink / raw)


hardaker@ece.ucdavis.edu (Wes Hardaker) writes:

> You know, I've been wanting to have a sort function that checked to
> see if something was ticked or cached or whatever (ie, sort based on
> article marks). 

Well, that's not real problem -- but I don't think something like that
would be generally useful.
`gnus-thread-sort-by-{tick,cache,dormant,expirable,killed,unread} --
there are just too many marks.  People should have no problem writing
the functions on their own.

For instance:

(defun gnus-thread-sort-by-tick (h1 h2)
  (and (memq (mail-header-number (gnus-thread-header h1))
             gnus-newsgroup-marked)
       (not (memq (mail-header-number (gnus-thread-header h2))
                  gnus-newsgroup-marked))))

This should make ticked articles come before unticked ones.  I think. 

-- 
  "Yes.  The journey through the human heart 
     would have to wait until some other time."


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

* Re: Sorting summary - cached articles
  1996-03-12  6:08     ` Lars Magne Ingebrigtsen
@ 1996-03-12 16:52       ` Wes Hardaker
  0 siblings, 0 replies; 7+ messages in thread
From: Wes Hardaker @ 1996-03-12 16:52 UTC (permalink / raw)
  Cc: ding

>>>>> "Lars" == Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:

    Lars> Well, that's not real problem -- but I don't think something
    Lars> like that would be generally useful.
    Lars> `gnus-thread-sort-by-{tick,cache,dormant,expirable,killed,unread}
    Lars> -- there are just too many marks.  People should have no
    Lars> problem writing the functions on their own.

True...  A better thing to do would be to have one and pass the type
as the argument.  Of course, you can't do that for sorting
functions...  sigh...

    Lars> For instance:

    Lars> (defun gnus-thread-sort-by-tick (h1 h2)

One of the reasons I wrote that message was that I figured someone
would be kind enough to write this function for me.  I figured it was
extremely simple, but I hadn't looked into how to determine if an
article was ticked or not.  It would have taken me an hour or so to
look for the right functions to use.  Thanks!

Wes


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

* Re: Sorting summary - cached articles
  1996-03-11 18:31   ` Wes Hardaker
  1996-03-12  6:08     ` Lars Magne Ingebrigtsen
@ 1996-03-18 13:24     ` Albrecht Kadlec
  1996-03-25 19:23       ` Wes Hardaker
  1 sibling, 1 reply; 7+ messages in thread
From: Albrecht Kadlec @ 1996-03-18 13:24 UTC (permalink / raw)
  Cc: Lars Magne Ingebrigtsen, ding

>>>>> Wes Hardaker writes:

>>>>> "Lars" == Lars Magne Ingebrigtsen <larsi@ifi.uio.no> writes:
Lars> Jack Vinson <jvinson@cheux.ecs.umass.edu> writes:
> Should cached articles get sorted along with all the rest of
> them?

Lars> Yes.

W> You know, I've been wanting to have a sort function that checked to
W> see if something was ticked or cached or whatever (ie, sort based on
W> article marks).  For instance, I want all my ticked articles to be at
W> the top.  This of course gets more complex when threads are involved.
W> Arg.  I haven't looked into writing this function yet...

why not raise the score on ticking and then sort the threads via score?

don't know if it works - just seemed to me the first thing to try.

albrecht


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

* Re: Sorting summary - cached articles
  1996-03-18 13:24     ` Albrecht Kadlec
@ 1996-03-25 19:23       ` Wes Hardaker
  0 siblings, 0 replies; 7+ messages in thread
From: Wes Hardaker @ 1996-03-25 19:23 UTC (permalink / raw)
  Cc: Lars Magne Ingebrigtsen, ding

>>>>> "Albrecht" == Albrecht Kadlec <albrecht@vlsivie.tuwien.ac.at.> writes:

    W> You know, I've been wanting to have a sort function that
    W> checked to see if something was ticked or cached or whatever
    W> (ie, sort based on article marks).  For instance, I want all my
    W> ticked articles to be at the top.  This of course gets more
    W> complex when threads are involved.  Arg.  I haven't looked into
    W> writing this function yet...

    Albrecht> why not raise the score on ticking and then sort the
    Albrecht> threads via score?

Cause I have enough stupid things that rely on scoring and I didn't
want to play with it anymore.  I'd have to increase the score by like
10,000 or so to have it truly end up at the top.  1000 wouldn't be
enough for threads that had say, 2 responses from Lars in it since the
total score of the thread would be 2000...

:-)      Wouldn't this be cool as a real smiley?  Awesome idea Lars.

Wes


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

end of thread, other threads:[~1996-03-25 19:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-03-08 20:52 Sorting summary - cached articles Jack Vinson
1996-03-09 22:56 ` Lars Magne Ingebrigtsen
1996-03-11 18:31   ` Wes Hardaker
1996-03-12  6:08     ` Lars Magne Ingebrigtsen
1996-03-12 16:52       ` Wes Hardaker
1996-03-18 13:24     ` Albrecht Kadlec
1996-03-25 19:23       ` Wes Hardaker

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