Thread View: news.software.readers
8 messages
8 total messages
Started by Jan Hlavacek
Tue, 13 Oct 1998 00:00
Re: SLRN Macros/Hooks
Author: Jan Hlavacek
Date: Tue, 13 Oct 1998 00:00
Date: Tue, 13 Oct 1998 00:00
62 lines
2952 bytes
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/
Re: SLRN Macros/Hooks
Author: Dawn Owens-Nicholson
Date: Tue, 13 Oct 1998 00:00
Date: Tue, 13 Oct 1998 00:00
7 lines
889 bytes
889 bytes
I mistyped: > If we had that called /before/ downloading [...] Whoops -- if we had a hook called before and after downloading, we could make a nice cache.
Re: SLRN Macros/Hooks
Author: Jan Hlavacek
Date: Tue, 13 Oct 1998 00:00
Date: Tue, 13 Oct 1998 00:00
18 lines
1630 bytes
1630 bytes
On 13 Oct 1998 20:18:43 GMT, Dawn Owens-Nicholson
<bluemoon@ux6.cso.uiuc.edu> wrote:
> I mistyped:
> > If we had that called /before/ downloading [...]
>
> Whoops -- if we had a hook called before and after downloading, we could
> make a nice cache.
Well, you can call a hook before downloading, and download IN the
hook.
--
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/
Re: SLRN Macros/Hooks
Author: Dawn Owens-Nicholson
Date: Tue, 13 Oct 1998 00:00
Date: Tue, 13 Oct 1998 00:00
13 lines
1271 bytes
1271 bytes
Jan Hlavacek wrote: > 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. Sorry to quote so much relative to what I'm adding, but I had a brief idea about this: If we had that called /before/ downloading and the ability to control what's displayed in the article window we could make a better cache for slrn.
Re: SLRN Macros/Hooks
Author: 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
Re: SLRN Macros/Hooks
Author: Scott H. Perlman
Date: Wed, 14 Oct 1998 00:00
Date: Wed, 14 Oct 1998 00:00
22 lines
1267 bytes
1267 bytes
In article <slrn7278js.h6i.lahvak@octagon.mps.ohio-state.edu>, Jan Hlavacek wrote: > >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: > Is that fixed subset fixed at compile time (art.c,) or is there someway I coudld change it at initialization time for myself? (I could deal witha fixed subset for all newsgropus etc, especially if I could set it myself) -Scott -- ENGINE FATAL: OUT OF WAD --the computer. And you thought your computer was acting up! Scott H perlman@cgicafe.com
Re: SLRN Macros/Hooks
Author: Heikki Kantola
Date: Wed, 14 Oct 1998 00:00
Date: Wed, 14 Oct 1998 00:00
28 lines
1928 bytes
1928 bytes
John E. Davis <davis@space.mit.edu> informed news.software.readers with the following: >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. Good. :) >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. How about borrowing the ignore/unignore-mechanism of Mutt mail reader�, which isn't really a regexp-based, but allows you to specify beginning of the header names and wildcard * if wanting to see/hide everything. � For more information about eg. availability, see <URL:http://www.mutt.org/>. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Re: SLRN Macros/Hooks
Author: Thorfinn
Date: Wed, 14 Oct 1998 00:00
Date: Wed, 14 Oct 1998 00:00
31 lines
2051 bytes
2051 bytes
In news.software.readers, on 14 Oct 1998 04:22:08 GMT Scott H. Perlman <perlman@linguist.dartmouth.edu> wrote: >In article <slrn7278js.h6i.lahvak@octagon.mps.ohio-state.edu>, >Jan Hlavacek wrote: >>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: >Is that fixed subset fixed at compile time (art.c,) or is there someway >I coudld change it at initialization time for myself? It appears (from relatively cursory examination of art.c) that it's fixed in art.c at compile time. The mechanism by which the headers are parsed out and which ones are determined to be hidden appears to be a little weird... but it should be possible to comment them out in there. >(I could deal witha fixed subset for all newsgropus etc, especially if >I could set it myself) Doesn't look like it's settable in configuration (either .rc or .sl) at the moment. Later, Thorf -- <a href="http://www.tertius.net.au/~thorfinn/">thorfinn@tertius.net.au</a> Abstention from any aleatory undertaking precludes a potential escallation of a lucrative nature.
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