🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #47980

Re: Slrn reordering newsgroups -- revisited

#47980
From: John E. Davis
Date: Tue, 13 Apr 1999 00:00
68 lines
2234 bytes
On 13 Apr 99 16:18:19 GMT, Peppe <c928400@student.dtu.dk>
wrote:
>This moved several groups around. If I add 
>
>1.5 Toggle listing of groups without new messages ("l")
>
>no groups are moved. It seems as if hidden groups are moved about.
[...]
>I hope this provides enough information for a bug fix.

There is no bug.  You are changing the order of the groups with the
`m' (move) command.  If hidden groups are present, then the order is
ambiguous.  This is easy to understand.  Suppose the groups are in the
order:

    a
    X
    b
    Y
    c
    Z
    
where a, b, c are hidden, and X, Y, Z are visible.  Then slrn will
display this order as:

   X
   Y
   Z

Now suppose that you interchange Y and Z:

   X
   Z
   Y

This order is consistent with the orderings:

   a   a   a
   X   X   X
   b   b   b
   Z   Z   c
   c   Y   Z
   Y   c   Y

Which order do you want?  The algorithm used by slrn gives the first
ordering (interchanging _only_ Y and Z).  Now suppose that you move Z to
the top (above X) so that you see

   Z
   X
   Y

What happens to the hidden groups?  The algorithm will produce the
following sequence:

   a       a      a
   X       X      Z
   b       b      b
   Y  -->  Z  --> X
   c       c      c
   Z       Y      Y

So, because of the hidden groups, X and b were also interchanged, as
well as Y and c.

--John

Technical Details
Message-ID: <slrn7h70ou.q89.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn7h6rmd.ui.c928400@urdybet.pbk.dk>

Show Full Headers
Complete Article Headers
Message-ID: <slrn7h70ou.q89.davis@aluche.mit.edu>
Subject: Re: Slrn reordering newsgroups -- revisited
Date: Tue, 13 Apr 1999 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn7h6rmd.ui.c928400@urdybet.pbk.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 465965226
X-Complaints-To: usenet@eecs-usenet-02.mit.edu
X-Trace: eecs-usenet-02.mit.edu 924025632 328 18.75.2.45 (13 Apr 1999 17:47:12 GMT)
Organization: Center for Space Research
User-Agent: slrn/0.9.5.4 (UNIX)
Reply-To: davis@space.mit.edu
NNTP-Posting-Date: 13 Apr 1999 17:47:12 GMT
Newsgroups: news.software.readers