Thread View: news.software.readers
3 messages
3 total messages
Started by blue... Dawn Owens-Nicholson
Wed, 02 Dec 1998 00:00
[slrn] Moving groups around
Author: blue... Dawn Owens-Nicholson
Date: Wed, 02 Dec 1998 00:00
Date: Wed, 02 Dec 1998 00:00
41 lines
1516 bytes
1516 bytes
Maybe I didn't wait long enough for a response to my query in
<slrn769537...@ux6.cso.uiuc.edu>, but here's hoping someone
besides me finds these handy. If you know how group_up_n() and
group_down_n() work, you know how these work.
% Author: J.B. Nicholson-Owens
define move_group_up_n (n)
{
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);
}
define move_group_down_n (n)
{
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);
}
Re: [slrn] Moving groups around
Author: blue... Dawn Owens-Nicholson
Date: Wed, 02 Dec 1998 00:00
Date: Wed, 02 Dec 1998 00:00
27 lines
2033 bytes
2033 bytes
I asked: > Has anyone written a wrapper around slrn's move_group or transpose_groups > intrinisics so moving groups programmatically in S-Lang is easy or > intuitive? I have a need to manipulate the ordering of newsgroups from > within slrn. In <slrn769ri...@skater.htu.tuwien.ac.at>, Gerfried Fuchs replied: > I was told that the 'm'ove key is used for that ;) This doesn't answer my question. I believe I made it clear I was looking to move groups *programmatically in S-Lang*. Using move_group (bound to the 'm' key by default) programmatically from S-Lang is neither easy nor intuitive (in slrn 0.9.5.4, the current version, I couldn't get set_input_chars or set_input_string to push arrow keystrokes to move_group). Later I posted the answer to my question and Gerfried Fuchs replied: > Do you really expect a response within 3 hours?? The internet is fast > [...] There's no need for this tone, I'm fully aware of how the Internet works and how quickly one can usually expect replies to Usenet queries. I said I probably didn't wait long enough, but it turns out it was long enough to get an answer to my question, an answer I shared with the rest of you in the article you followed-up to: <slrn769hs8...@ux6.cso.uiuc.edu>, saving you the time of reinventing that wheel. Happy S-Lang macro writing!
Re: [slrn] Moving groups around
Author: al... Gerfried Fuchs
Date: Wed, 02 Dec 1998 00:00
Date: Wed, 02 Dec 1998 00:00
13 lines
1043 bytes
1043 bytes
On 2 Dec 1998, Dawn Owens-Nicholson <blue...@ux6.cso.uiuc.edu> wrote: > Maybe I didn't wait long enough for a response to my query in > <slrn769537...@ux6.cso.uiuc.edu>, Do you really expect a response within 3 hours?? The internet is fast, but have you thought about different timezones and that people aren't hanging around all the time just to answer your questions? *shhhsh* Alfie -- To err is human, to moo bovine.
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