Thread View: news.software.readers
3 messages
3 total messages
Started by Peppe
Tue, 13 Apr 1999 00:00
Slrn reordering newsgroups -- revisited
Author: Peppe
Date: Tue, 13 Apr 1999 00:00
Date: Tue, 13 Apr 1999 00:00
64 lines
2659 bytes
2659 bytes
A few weeks ago, there was discussion about slrn reordering groups.
I now use an alias for invoking slrn, which calls the following
script (in its most recent shape):
# -------------------------------------------------------------------------
#!/usr/bin/zsh
slrn -h news.k-net.dk
file=/tmp/${0##*/}.$$
grep ":" ~/.newsrc_k-net | cut -f1 -d':' > $file.new
grep ":" ~/.newsrc_k-net~ | cut -f1 -d':' > $file.old
diff -u $file.old $file.new | tee $HOME/slrn.diff
rm $file.new $file.old
# -------------------------------------------------------------------------
Upon seeing an error, I verified the rearranging in the following steps:
1. Fire up slrn
2. Listing k-net.net (using L)
3. Move down to k-net.net
4. Hit "m" to move the group
5. Using <UP> to move the group to the top of the list (until error)
6. Subscribe the group
7. Quit slrn
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.
The start of the diff is:
--- /tmp/test_slrn.871.old Tue Apr 13 18:07:27 1999
+++ /tmp/test_slrn.871.new Tue Apr 13 18:07:27 1999
@@ -1,14 +1,15 @@
+k-net.net
comp.editors
news.software.readers
news.software.nntp
-comp.mail.mutt
rec.humor.funny
rec.humor.funny.reruns
comp.risks
alt.fan.warlord
alt.folklore.computers
-comp.infosystems.www.browsers.misc
+comp.mail.mutt
news.announce.important
+comp.infosystems.www.browsers.misc
news.announce.newgroups
news.groups
[--- snip ---]
I hope this provides enough information for a bug fix.
Peppe
--
Preben Guldberg __/-\__ Democracy does not guarantee equality
c928400@student.dtu.dk (o o) of conditions - it only guarantees
-------------------- oOOo (_) oOOo equality of opportunity.
http://www.student.dtu.dk/~c928400 --Irving Kristol
Re: Slrn reordering newsgroups -- revisited
Author: Peppe
Date: Tue, 13 Apr 1999 00:00
Date: Tue, 13 Apr 1999 00:00
85 lines
3110 bytes
3110 bytes
Thus wrote John E. Davis <davis@space.mit.edu>
> 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.
OK, I see. Thanks for the fine explanation.
> 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:
It might be that slrn interchanges groups, I'd prefer just to move
one of them above the other. When moving a group up several lines, I
don't expect anything else to happen to the general order of the
groups.
> 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).
If you ask me, I'd prefer one of
a a
X X
b Z
Z b
Y Y
c c
The first one being similar to your second. As you mention, it is
ambiguous which to do. Still, this more resembles a move of a single
group than what slrn does (to me, of course).
As for interchanging two visible groups only, the relative positions
to other subscribed groups are ignored if they happen to have no new
messages.
Anyway, now that I know how slrn handles this, I might remember to
toggle listing of all subscribed groups.
Peppe
--
Preben Guldberg __/-\__ One-Shot Case Study, n.: The scientific
c928400@student.dtu.dk (o o) equivalent of the four-leaf clover, from
----------------------oOOo (_) oOOo which it is concluded all clovers possess
http://www.student.dtu.dk/~c928400/ four leaves and are sometimes green.
Re: Slrn reordering newsgroups -- revisited
Author: John E. Davis
Date: Tue, 13 Apr 1999 00:00
Date: Tue, 13 Apr 1999 00:00
68 lines
2234 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads