Article View: news.software.readers
Article #44762Re: slrn Win95: How to mark all groups as read?
From: Peppe
Date: Mon, 23 Nov 1998 00:00
Date: Mon, 23 Nov 1998 00:00
60 lines
2571 bytes
2571 bytes
Thus wrote Mike Harlos <mharlos@netcom.ca>
> Hi,
> I'm just starting with slrn under Win95.
> Is there a quick method of marking all article is all groups as read?
> I don't mean the "c" keystroke, which only affects one group, but
> rather something that will mark all at once.
> 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
You can use some slang functions for this. Add the following to
.slrn.sl:
define catchup_all_groups ()
{
call ("bob");
while (group_down_n (1))
{
group_up_n (1);
call ("catchup");
}
call ("catchup");
}
define quit_and_catchup ()
{
!if (is_group_mode ())
call ("quit");
catchup_all_groups ();
call ("quit");
}
definekey ("quit_and_catchup", "Q", "article");
definekey ("quit_and_catchup", "Q", "group");
And add the folowing to your .slrnrc:
interpret .slrn.sl
Hitting Q in either article or group mode will catch up on all groups
and quit slrn.
I usually prefer not to use the definekey() function but rather set
the key mappings in my .slrnrc directly with:
setkey group quit_and_catchup "Q"
setkey article quit_and_catchup "Q"
This way I find I have a better overview of the keys that I have
mapped. .slrn.sl must be sourced before these key mappings, of course.
Peppe
--
Preben Guldberg c928400@student.dtu.dk http://www.student.dtu.dk/~c928400/
__/-\__ Il buono: "Take a sling of this Captain. And keep your ears open."
(o o) Captain: "Doc, can you make me live a little more. I excpect
oOOo (_) oOOo good news." --_Il buono, il brutto, il cattivo_
Technical Details
Message-ID:
<slrn75h9k7.bb.c928400@urdybet.bergsoe.dtu.dk>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: <slrn75h9k7.bb.c928400@urdybet.bergsoe.dtu.dk> Subject: Re: slrn Win95: How to mark all groups as read? Date: Mon, 23 Nov 1998 00:00:00 +0000 From: c928400@student.dtu.dk (Peppe) 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: 414622720 X-Complaints-To: usenet@news.net.uni-c.dk X-Trace: news.net.uni-c.dk 911779490 14526 (None) 130.225.71.226 Organization: Home of Peppe User-Agent: slrn/0.9.5.3 (UNIX) Reply-To: c928400@student.dtu.dk Newsgroups: news.software.readers