Article View: news.software.readers
Article #44790Re: slrn Win95: How to mark all groups as read?
From: Dawn Owens-Nicholson
Date: Tue, 24 Nov 1998 00:00
Date: Tue, 24 Nov 1998 00:00
47 lines
2076 bytes
2076 bytes
Mike Harlos wrote:
> Is there a quick method of marking all article is all groups as read?
> [...]
> This could either be a keystroke, or a setting in the slrn.rc file
> that would mark all groups as read on quitting the program
Here's one way to do it:
define my_quit ()
{
!if (is_group_mode ()) % in case you accidentally
{ % bind this in article mode.
call ("quit");
return ();
}
variable
previous_group = "",
confirm_actions = get_variable_value ("confirm_actions"),
starting_group = current_newsgroup ();
if (starting_group == "") return (); % nothing to do!
call ("bob");
do
{
previous_group = current_newsgroup ();
if (confirm_actions) set_input_chars ("y");
call ("catchup");
}
while (current_newsgroup () != previous_group);
while (current_newsgroup () != starting_newsgroup)
() = group_search (starting_newsgroup);
}
Save the above function in a file 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 my_quit "\eC"
Quit and/or restart slrn and ESC-C will mark all groups as read.
Technical Details
Message-ID:
<slrn75llf3.a34.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:
<AHY52.6632$DF6.197171@tor-nn1.netcom.ca>Show Full Headers
Complete Article Headers
Message-ID: <slrn75llf3.a34.bluemoon@ux6.cso.uiuc.edu> Subject: Re: slrn Win95: How to mark all groups as read? Date: Tue, 24 Nov 1998 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <AHY52.6632$DF6.197171@tor-nn1.netcom.ca> 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: 415195069 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.4 (UNIX) Newsgroups: news.software.readers