Article View: news.software.readers
Article #43750Re: SLRN Macros/Hooks
From: John E. Davis
Date: Wed, 14 Oct 1998 00:00
Date: Wed, 14 Oct 1998 00:00
30 lines
1786 bytes
1786 bytes
On 14 Oct 1998 05:40:50 GMT, Thorfinn <thorfinn@tertius.net.au>
wrote:
>Doesn't look like it's settable in configuration (either .rc or .sl) at
>the moment.
It is on my list of things to add to 0.9.6.0. The configuration
syntax will probably be regular expression based, but the truth is
that I have not given it too much thought at the moment. I may just
add a slang hook since that would permit the most flexible mechanism,
e.g.,
define show_header_hook (header_line)
{
variable header;
variable show_these;
header = extract_element (header_line, 0, ':');
show_these = "From|Subject|Organization|Summary";
if (is_list_element (show_these, header, '|'))
return 1;
return 0;
}
Support for a hook would also be trivial to implement.
--John
Technical Details
Message-ID:
<slrn728hph.rt3.davis@aluche.mit.edu>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-mailReferences:
<slrn7261p3.1g7.perlman@linguist.dartmouth.edu> <slrn7278js.h6i.lahvak@octagon.mps.ohio-state.edu> <slrn7289ng.1g7.perlman@linguist.dartmouth.edu> <slrn728e4u.ma.thorfinn@tertius.net.au>Show Full Headers
Complete Article Headers
Message-ID: <slrn728hph.rt3.davis@aluche.mit.edu> Subject: Re: SLRN Macros/Hooks Date: Wed, 14 Oct 1998 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn7261p3.1g7.perlman@linguist.dartmouth.edu> <slrn7278js.h6i.lahvak@octagon.mps.ohio-state.edu> <slrn7289ng.1g7.perlman@linguist.dartmouth.edu> <slrn728e4u.ma.thorfinn@tertius.net.au> 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: 400897377 X-Complaints-To: usenet@eecs-usenet-02.mit.edu X-Trace: eecs-usenet-02.mit.edu 908347189 20964 18.75.2.45 (14 Oct 1998 06:39:49 GMT) Organization: Center for Space Research User-Agent: slrn/0.9.5.3 (UNIX) Reply-To: davis@space.mit.edu NNTP-Posting-Date: 14 Oct 1998 06:39:49 GMT Newsgroups: news.software.readers