Article View: news.software.readers
Article #45168Re: [slrn] Catchup on all groups
From: Dawn Owens-Nicholson
Date: Sun, 06 Dec 1998 00:00
Date: Sun, 06 Dec 1998 00:00
60 lines
2421 bytes
2421 bytes
Michael Ghens wrote:
> Is there a way to catch up on all groups (fresh start).
Yes.
define catchup_all_groups ()
{
!if (is_group_mode ()) call ("quit");
variable
previous_newsgroup = "",
confirm_actions = get_variable_value ("confirm_actions"),
starting_newsgroup = current_newsgroup ();
if (starting_newsgroup == "") return (); % nothing to do!
call ("bob");
do
{
previous_newsgroup = current_newsgroup ();
if (confirm_actions) set_input_chars ("y");
call ("catchup");
}
while (current_newsgroup () != previous_newsgroup);
while (current_newsgroup () != starting_newsgroup)
() = group_search (starting_newsgroup);
message ("All groups marked as read.");
}
Save the above functions in a file called "catchup_all_groups.sl" where slrn
will find it (check your slrn.rc for "macro_directory" and put it in one of
those directories, perhaps the directory where the slrn executable is kept
is good enough on Windows). Next, add this to your slrn.rc:
interpret "catchup_all_groups.sl"
setkey group catchup_all_groups "\eC"
setkey article catchup_all_groups "\eC"
If you also want to do this when you quit slrn, save this function to the
same file:
define my_quit ()
{
EXIT_BLOCK { call ("quit"); }
!if (is_group_mode ()) return (); % in case you bind this in
% article mode.
catchup_all_groups ();
}
and include the keybinding you want to use for this:
setkey group my_quit "q"
setkey article my_quit "q"
Quit and/or restart slrn and ESC-C will mark all groups as read.
Technical Details
Message-ID:
<slrn76jjpj.8g.bluemoon@ux6.cso.uiuc.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-mailReferences:
<slrn76jc5s.5nk.michael@merlin.spconnect.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn76jjpj.8g.bluemoon@ux6.cso.uiuc.edu> Subject: Re: [slrn] Catchup on all groups Date: Sun, 06 Dec 1998 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <slrn76jc5s.5nk.michael@merlin.spconnect.com> 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: 419083447 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.4 (UNIX) Newsgroups: news.software.readers