Article View: news.software.misc
Article #1780Re: slrn: stopping it go to the next message when scrolling through
From: 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!
Technical Details
Message-ID:
<slrn7q93rp.6on.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.misc.mbox.zip!not-for-mailReferences:
<slrn7q878s.aki.ng@asiro.freeserve.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <slrn7q93rp.6on.bluemoon@ux6.cso.uiuc.edu> Subject: Re: slrn: stopping it go to the next message when scrolling through Date: Sun, 01 Aug 1999 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <slrn7q878s.aki.ng@asiro.freeserve.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.misc.mbox.zip!not-for-mail X-Deja-AN: 507833953 Organization: University of Illinois at Urbana-Champaign Followup-To: news.software.readers User-Agent: slrn/0.9.5.7 (UNIX) Newsgroups: news.software.readers,news.software.misc