Thread View: news.software.misc
1 messages
1 total messages
Started by Dawn Owens-Nicholson
Sun, 01 Aug 1999 00:00
Re: slrn: stopping it go to the next message when scrolling through
Author: Dawn Owens-Nicholson
Date: Sun, 01 Aug 1999 00:00
Date: Sun, 01 Aug 1999 00:00
55 lines
2447 bytes
2447 bytes
[I redirected followups to news.software.readers because that's the place to
ask this sort of question.]
ng@nospam-asiro.freeserve.co.uk wrote:
> From: ng@nospam-asiro.freeserve.co.uk ()
> Reply-To: no@no.com
Please look into getting your ISP to install anti-spam filters on inbound
e-mail. It's quite a pain to routinely edit e-mail addresses when one
shouldn't have to.
> just wondering if there is anyway to stop slrn always going to the next
> message straight away when scrolling through (usually with space key) a
> message, I woudl rather have it stop noo matter how many times I press
> space.
Yes, you can do it with a macro. Here's one way:
implements ("my");
static define scroll_dn ()
{
% Make spacebar /not/ go to the next article at the end of the current
% article.
switch (get_next_art_pgdn_action ())
{ case (-1) : error (_function_name () + " only works in article mode!"); }
{ case (0) : call ("scroll_dn"); }
}
Then load this function--from your slrn.rc you could say:
interpret "my_macros.sl" % my no-advance spacebar
assuming you saved the above function in a file called "my_macros.sl", of
course. Finally, bind the function to the spacebar key (again, from your
slrn.rc):
setkey article my->scroll_dn " "
So in article mode, my->scroll_dn() (the scroll_dn() in "my" namespace) will
be run every time you hit the spacebar.
You didn't say if you wanted spacebar to go to the next group at the end of
the last page of the last article, but I assumed not. If this assumption
was incorrect, change:
{ case (0) : call ("scroll_dn"); }
to:
{ orelse { case (0) } { case (2) } : call ("scroll_dn"); }
Happy newsreading!
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