Thread View: news.software.readers
8 messages
8 total messages
Started by Mike Harlos
Sun, 22 Nov 1998 00:00
slrn Win95: How to mark all groups as read?
Author: Mike Harlos
Date: Sun, 22 Nov 1998 00:00
Date: Sun, 22 Nov 1998 00:00
17 lines
1195 bytes
1195 bytes
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 Thanks, Mike -- Mike Harlos <mharlos@netcom.ca> Winnipeg, Manitoba, Canada
Re: slrn Win95: How to mark all groups as read?
Author: 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_
Re: slrn Win95: How to mark all groups as read?
Author: 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.
Re: slrn Win95: How to mark all groups as read?
Author: John E. Davis
Date: Tue, 24 Nov 1998 00:00
Date: Tue, 24 Nov 1998 00:00
22 lines
1333 bytes
1333 bytes
On 23 Nov 98 00:04:44 GMT, Peppe <c928400@student.dtu.dk>
wrote:
> define catchup_all_groups ()
> {
> call ("bob");
> while (group_down_n (1))
> {
> group_up_n (1);
> call ("catchup");
> }
> call ("catchup");
> }
Keep in mind that group_up_n returns an integer and as you have
currently coded it, this integer is being left on the stack. You
should write is as:
() = group_up_n (1);
--John
Re: slrn Win95: How to mark all groups as read?
Author: Dawn Owens-Nicholson
Date: Wed, 25 Nov 1998 00:00
Date: Wed, 25 Nov 1998 00:00
41 lines
1994 bytes
1994 bytes
If you tried to execute the macro I posted, you probably noticed the
variable "starting_group" won't work if spelled "starting_newsgroup". Here's
a correct version--thanks for pointing this out, Mike! Someone else wanted
to use this without quitting to group mode, so it's been split up. Enjoy.
define catchup_all_groups ()
{
!if (is_group_mode ()) return ();
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.");
}
define my_quit ()
{
EXIT_BLOCK { call ("quit"); }
!if (is_group_mode ()) return (); % in case you bind this in
% article mode.
catchup_all_groups ();
}
Re: slrn Win95: How to mark all groups as read?
Author: Mike Harlos
Date: Sat, 28 Nov 1998 00:00
Date: Sat, 28 Nov 1998 00:00
10 lines
1043 bytes
1043 bytes
On Sat, 28 Nov 1998 08:38:41 GMT, Martin Matthews <martin@matthews1.freeserve.co.uk> wrote: >Can you remember where you got your version? At: http://www.vex.net/~cthuang/slrn/ Mike
Re: slrn Win95: How to mark all groups as read?
Author: Martin Matthews
Date: Sat, 28 Nov 1998 00:00
Date: Sat, 28 Nov 1998 00:00
21 lines
1204 bytes
1204 bytes
A bit off topic so sorry. Can you remember where you got your version? I have had trouble with some downloaded files so would appreciate a pointer to a clean version. On Sun, 22 Nov 1998 18:26:40 GMT, mharlos@netcom.ca (Mike Harlos) wrote: >Hi, > >I'm just starting with slrn under Win95. _________________________ Martin, Cornwall UK Sorry for the spleling mistaks I'm not illiterit just lazy
Re: slrn Win95: How to mark all groups as read?
Author: Frank Hahn
Date: Sun, 29 Nov 1998 00:00
Date: Sun, 29 Nov 1998 00:00
24 lines
1369 bytes
1369 bytes
On Sat, 28 Nov 1998 08:38:41 GMT, Martin Matthews <martin@matthews1.freeserve.co.uk> wrote: >A bit off topic so sorry. > >Can you remember where you got your version? > >I have had trouble with some downloaded files so would appreciate a >pointer to a clean version. > >On Sun, 22 Nov 1998 18:26:40 GMT, mharlos@netcom.ca (Mike Harlos) >wrote: > >>Hi, >> >>I'm just starting with slrn under Win95. > If you are talking about the Windows 95 version of slrn, try: www.vex.net/~cthuang/slrn/ -- Frank Hahn
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