Thread View: news.software.nntp
6 messages
6 total messages
Started by John Oliver
Wed, 18 Aug 1999 00:00
slrn question
Author: John Oliver
Date: Wed, 18 Aug 1999 00:00
Date: Wed, 18 Aug 1999 00:00
11 lines
1245 bytes
1245 bytes
My slrn sorts newsgroups Z to A. I can, of course, use sort on my .jnewsrc. But ass soon as there's a new newsgroup, it shows up at the top, rather than in correct alphabetical order. Is there a way to make it sort all groups, new or otherwise, from A to Z? -- If you want to reply to me, do it in the newsgroup... It's been too long since I've received anything other than spam in my mailbox from posting my address on Usenet.
Re: slrn - aplphabetic sorting
Author: Sven Guckes
Date: Fri, 20 Aug 1999 00:00
Date: Fri, 20 Aug 1999 00:00
29 lines
1760 bytes
1760 bytes
* John Oliver <nobody@nowhere.zzz>: > My slrn sorts newsgroups Z to A. I can, of course, use sort on my > .jnewsrc. But ass soon as there's a new newsgroup, it shows up at > the top, rather than in correct alphabetical order. Is there a way > to make it sort all groups, new or otherwise, from A to Z? set sorting_method 9 Works for me. Well, somewhat. slrn-0943 has a bug with the sorting (I think). Might be gone with slrn-0957... > X-Newsreader: Forte Agent 1.5/32.451 Hmm... > Subject: Re: slrn question At least the Subject points at "slrn". Sven -- Sven Guckes guckes@math.fu-berlin.de using SLRN 0.9.4.4 [981105] SLRN Pages: http://www.guckes.net/slrn/ latest version: 0.9.5.7 [9907..] SLRN Wishlist: http://www.guckes.net/slrn/wish.html wish.html SLRN Author: http://space.mit.edu/~davis/slrn.html John E. Davis aka JED
Re: slrn - aplphabetic sorting
Author: Dawn Owens-Nicholson
Date: Sat, 21 Aug 1999 00:00
Date: Sat, 21 Aug 1999 00:00
148 lines
4975 bytes
4975 bytes
John Oliver wrote:
> My slrn sorts newsgroups Z to A. I can, of course, use sort on my
> .jnewsrc. But ass soon as there's a new newsgroup, it shows up at the top,
> rather than in correct alphabetical order. Is there a way to make it sort
> all groups, new or otherwise, from A to Z?
Sven Guckes replied:
> set sorting_method 9
That applies only to article sorting, not group sorting.
To do group sorting within slrn you need to either use a macro or manually
position the group where you want it to go (either by transposing groups or
moving the group to its destination). Here's a macro that will sort groups
from A to Z or reverse the current order of the groups. I'm working on a
fancier version to do multiple types of sorting and sort a subset of the
groups.
To install, save the code as "group_sort.sl" (your homedir is a good easy
place to put it) and include the following in your slrn.rc:
interpret "group_sort.sl"
setkey group Group_Sort->ascii_sort "^Ks"
setkey group Group_Sort->reverse "^Kr"
Then quit slrn (if you're running it) and restart slrn. Now Control-K then
"s" will sort the groups A-Z. Flipping the order of the groups (no matter
how they're arranged) can be done by hitting Control-K then "r". I made up
these keybindings to get you started, change them if you wish.
If you're into S-Lang macros, you might find Group_Sort->move_group_up_n()
and Group_Sort->move_group_down_n() handy. They work just like
group_up/down_n() but these functions move the current group n groups up or
down the group list (instead of moving the cursor n groups up or down the
group list). If you have no idea what this paragraph is referring to,
that's okay.
Happy newsreading!
% Sort newsgroup list % -*- mode: slang; mode: fold -*-
implements ("Group_Sort");
static define move_group_up_n (n) %{{{
{
!if (is_group_mode ())
error (_function_name () + " doesn\'t work in article mode");
variable
group = current_newsgroup (),
moved = 0;
loop (n)
{
call ("transpose_groups");
if (current_newsgroup () == group) break;
while (current_newsgroup () != group) () = group_search (group);
moved++;
}
return (moved);
}
%}}}
static define move_group_down_n (n) %{{{
{
!if (is_group_mode ())
error (_function_name () + " doesn\'t work in article mode");
variable
group = current_newsgroup (),
moved = 0;
loop (n)
{
!if (group_down_n (1)) break;
call ("transpose_groups");
moved++;
if (current_newsgroup () == group) break;
() = group_up_n (1);
}
return (moved);
}
%}}}
static define ascii_sort () %{{{
{
!if (is_group_mode ())
error (_function_name () + " doesn\'t work in article mode");
variable
sg = current_newsgroup (),
group_list = Assoc_Type[Null_Type],
num_groups = 0,
counter = 0,
group = NULL;
call ("bob");
do group_list[current_newsgroup ()] = NULL;
while (group_down_n (1));
group_list = assoc_get_keys (group_list);
group_list = group_list[array_sort (group_list, &strcmp)];
num_groups = length (group_list);
foreach (group_list)
{
group = ();
while (current_newsgroup () != group) () = group_search (group);
() = move_group_up_n (num_groups);
() = move_group_down_n (counter);
counter++;
}
while (current_newsgroup () != sg) () = group_search (sg);
}
%}}}
static define reverse () %{{{
{
!if (is_group_mode ())
error (_function_name () + " doesn\'t work in article mode");
variable
sg = current_newsgroup (),
bignumber = 1000,
num_groups = 0,
i = 0;
call ("bob");
do
{
i = move_group_down_n (bignumber);
num_groups += i;
}
while (i == bignumber);
for (i = 1; i <= num_groups; i++)
{
call ("bob");
() = move_group_down_n (num_groups - i);
}
while (current_newsgroup != sg) () = group_search (sg);
}
%}}}
Re: slrn - aplphabetic sorting
Author: John Oliver
Date: Sun, 22 Aug 1999 00:00
Date: Sun, 22 Aug 1999 00:00
31 lines
1707 bytes
1707 bytes
On 20 Aug 1999 12:55:14 GMT, guckes@math.fu-berlin.de (Sven Guckes) wrote: > set sorting_method 9 > >Works for me. Well, somewhat. >slrn-0943 has a bug with the sorting (I think). >Might be gone with slrn-0957... Ahh, here we are... a slight change in Subject: :-) >> X-Newsreader: Forte Agent 1.5/32.451 > >Hmm... > >> Subject: Re: slrn question > >At least the Subject points at "slrn". Your point? Yes, I use Agent when at home. Far friendlier than slrn... I need to use slrn from work, where my only way of accessing Usenet will be through a ssh connection with my home machine. Thanks! -- If you want to reply to me, do it in the newsgroup... It's been too long since I've received anything other than spam in my mailbox from posting my address on Usenet.
Re: slrn - aplphabetic sorting
Author: Nile Evil Bastard
Date: Tue, 24 Aug 1999 00:00
Date: Tue, 24 Aug 1999 00:00
27 lines
1579 bytes
1579 bytes
On Sun, 22 Aug 1999 23:05:46 GMT,
John Oliver <nobody@nowhere.zzz> wrote:
:>> X-Newsreader: Forte Agent 1.5/32.451
:>> Subject: Re: slrn question
:>At least the Subject points at "slrn".
:Your point? Yes, I use Agent when at home. Far friendlier than
:slrn... I need to use slrn from work, where my only way of accessing
:Usenet will be through a ssh connection with my home machine.
*shudder*
http://thingy.apana.org.au/~fun/slrn/slrn-vs-agent.html
(And as for Outhouse Excess ...)
--
http://netizen.com.au/ http://www.caube.org.au/
ALERT! Australian government attempts to censor Australian internet out of
existence! - See http://www.efa.org.au/ for the gory details ...
Re: slrn - aplphabetic sorting
Author: John Oliver
Date: Wed, 25 Aug 1999 00:00
Date: Wed, 25 Aug 1999 00:00
19 lines
1788 bytes
1788 bytes
On 24 Aug 1999 01:05:22 +1000, nile-eb@iname.com (Nile Evil Bastard) wrote: > http://thingy.apana.org.au/~fun/slrn/slrn-vs-agent.html A very fair comparison. I use Agent mostly because I already know it, and it pretty much does what I want it to do. I have no doubt that, since I'm going to have to use slrn at work (you want to *really* shudder? They're talking about using Lotus Notes for Usenet access... I almost threw up... ;-) ), I may very well learn to like it better than Agent and so use it exclusively. But since I'm not a dedicated Usenet denizen, I'm doing all right for now... -- If you want to reply to me, do it in the newsgroup... It's been too long since I've received anything other than spam in my mailbox from posting my address on Usenet.
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