Article View: news.software.readers
Article #34701Re: Pre-post hook in slrn?
From: da... John E. Davis
Date: Sun, 29 Jun 1997 00:00
Date: Sun, 29 Jun 1997 00:00
32 lines
1300 bytes
1300 bytes
On 25 Jun 1997 05:15:33 GMT, Jan Hlavacek <lah...@math.ohio-state.edu>
wrote:
>I would love to see pre-post and pre-display hooks in slrn.
0.9.4.2 will feature a `post_hook' and a `post_filter_hook'. What
should a pre-display hook do? Here is a sample post_filter_hook:
define post_filter_hook (file)
{
variable rsp;
variable cmd;
forever
{
rsp = get_response ("NnIi",
"Select Filter? \001None, \001Ispell");
if ((rsp == 'i') or (rsp == 'I'))
cmd = "ispell -x";
else return;
() = system (Sprintf ("%s '%s'", cmd, file, 2));
}
}
This example makes it clear that other filter options can be added.
--John
Technical Details
Message-ID:
<slrn5rbunf.3rb.davis@mygir.davis.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mailReferences:
<slrn5r0s5r.ocr.asfast@ljz.asfast.net> <slrn5r1abk.bv5.lahvak+n@math.mps.ohio-state.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn5rbunf.3rb.davis@mygir.davis.net> Subject: Re: Pre-post hook in slrn? Date: Sun, 29 Jun 1997 00:00:00 +0000 From: da...@space.mit.edu (John E. Davis) References: <slrn5r0s5r.ocr.asfast@ljz.asfast.net> <slrn5r1abk.bv5.lahvak+n@math.mps.ohio-state.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail X-Deja-AN: 253392865 Organization: Center for Space Research Newsgroups: news.software.readers,alt.lang.s-lang