🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #43737

Re: SLRN Macros/Hooks

#43737
From: Jan Hlavacek
Date: Tue, 13 Oct 1998 00:00
62 lines
2952 bytes
On 13 Oct 1998 07:54:11 GMT, Scott H. Perlman
<perlman@linguist.dartmouth.edu> wrote:
> Before doing a bunch of experiments,
> 
> IWhat would be the appropriate hook to add
> extract_article_header  I frequently want to look at a header that is
> not displayed by default, and I'd like to set certain groups to do so
> autmatically.
> 
> On the same token is there a comparable function to hide and article header
> I don't want to see?
> 
> I'm new to slang scripting, but don't see anything obvious in the 
> references i can find.
> 
> I realize this is similar to something on Sven's wishlist, but it seems
> that it should be do-able through SLANG. (at least adding headers)

No,  currently it is not possible.  You can have either all headers or
some fixed subset.  The best you can do is display the header on the
status line when you press a key:


define display_header_on_status_line (header)
{
   message (extract_article_header (header));
}

define display_user_agent ()
{
   display_header_on_status_line ("User-Agent");
}

definekey ("display_user_agent", "^a", "article");

You can play with it some more,  add tests that you are in the article
mode,  that the article is visible and so on.

I wish there was something like "article_enter_hook",  which would be
called every time you select an article to read,  preferably after
downloading,  but before displaying.  That way you could put it into the
hook and have it display your header every time you display an article,
without pressing any key.

> 
> Thansk!
> 
> -Scott
> 
> -- 
> Life is a Terminal Illness,    |   an apple a day keeps the 
>   Noone has survived it yet.   |  produce farmers very happy
>      perlman@cgicafe.com       | apply disclaimers liberally!


-- 
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

Technical Details
Message-ID: <slrn7278js.h6i.lahvak@octagon.mps.ohio-state.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-mail
References: <slrn7261p3.1g7.perlman@linguist.dartmouth.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn7278js.h6i.lahvak@octagon.mps.ohio-state.edu>
Subject: Re: SLRN Macros/Hooks
Date: Tue, 13 Oct 1998 00:00:00 +0000
From: lahvak@math.mps.ohio-state.edu (Jan Hlavacek)
References: <slrn7261p3.1g7.perlman@linguist.dartmouth.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-mail
X-Deja-AN: 400710690
X-Complaints-To: usenet@math.ohio-state.edu
X-Trace: mathserv.mps.ohio-state.edu 908305020 2639 128.146.111.74 (13 Oct 1998 18:57:00 GMT)
Organization: Department of Mathematics, The Ohio State University
User-Agent: slrn/0.9.5.3 (UNIX)
Reply-To: lahvak@math.mps.ohio-state.edu
NNTP-Posting-Date: 13 Oct 1998 18:57:00 GMT
Newsgroups: news.software.readers