Article View: news.software.readers
Article #51560[slrn] refresh groups
From: Stephane Gibier
Date: Sat, 04 Sep 1999 00:00
Date: Sat, 04 Sep 1999 00:00
26 lines
1421 bytes
1421 bytes
Hello,
I have created a small slrn macro which refresh groups and remove the
current group if it has 0 unread articles. I am sure this macro could be
optimized because I have to call twice refresh_groups. Any ideas ?
define Smart_RefreshGroups()
{
if( is_group_mode() )
{
call( "refresh_groups" );
if( 0 == group_unread() )
{
call( "down" );
call( "refresh_groups" );
}
}
}
definekey( "Smart_RefreshGroups", "G", "group" );
--
St�phane Gibier <sgibier@mail.dotcom.fr>
Voici une lieuse de chardon !
Ibvpv har puvrhfr qr yneqbaf !
Technical Details
Message-ID:
<slrn7t2p4j.9b2.sgibier@hermes.olympus.fr>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-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn7t2p4j.9b2.sgibier@hermes.olympus.fr> Subject: [slrn] refresh groups Date: Sat, 04 Sep 1999 00:00:00 +0000 From: sgibier@mail.dotcom.fr (Stephane Gibier) 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: 521078459 Content-Transfer-Encoding: 8bit Mail-Copies-To: nobody Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 936469703 24229 164.138.61.176 (4 Sep 1999 18:28:23 GMT) Organization: Olympus Mime-Version: 1.0 User-Agent: slrn/0.9.5.7 (UNIX) NNTP-Posting-Date: 4 Sep 1999 18:28:23 GMT Newsgroups: news.software.readers