Article View: news.software.readers
Article #233370Re: Slrn
From: r
Date: Fri, 22 May 2009 16:21
Date: Fri, 22 May 2009 16:21
53 lines
2649 bytes
2649 bytes
On 2009-05-22, Christian Ebert <blacktrash@gmx.net> wrote:
> * r on Friday, May 22, 2009:
>> is there a way/patch/macro, in the messagges menu, to update the
>> messagges list with new messagges instead of quit from
>> messagges-list going in the groups list and re-enter in messagges-list ?
>
> The following should do what you want, including going back to
> where you were:
>
> #v+
>
> implements ("RefreshInArticleMode");
>
> static define refresh ()
> {
> variable msgid = extract_article_header ("Message-ID"),
> show_article = get_variable_value ("show_article"),
> isvisible = is_article_visible (),
> cutoff = get_variable_value ("query_read_group_cutoff");
> call ("undelete"); % do not expunge article
> call ("quit");
>
> % in group display now
> call ("refresh_groups");
> % silently reenter group
> set_integer_variable ("query_read_group_cutoff", 0);
> call ("select_group");
> set_integer_variable ("query_read_group_cutoff", cutoff);
>
> () = locate_header_by_msgid (msgid, 0);
> % display article if it was shown before:
> if (isvisible == 3 and show_article == 0 ||
> isvisible != 3 and show_article != 0)
> call ("hide_article");
> }
>
> definekey ("RefreshInArticleMode->refresh", "R", "article");
> #v-
>
> As you've seen I've mapped the macro call to "R".
>
> If you S-Lang version is < 2.1 iirc you'd have to replace the ||
> operators with an orelse construct. Anyway, try it out.
>
> c
just a question
I'm really ignorant in programming and in managing macro, do I have to
put this code in ~/.slrnrc ?
R
Technical Details
Message-ID:
<slrnh1dk8h.67l.none@linux-3c4y.site>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsfeed101.telia.com!nf02.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!tornado.fastwebnet.it!53ab2750!not-for-mailReferences:
<slrnh1d5up.1ho.r.trev@ccla-05.fastwebit.ofc> <20090522130856.698.slrn@krille.blacktrash.org>Show Full Headers
Complete Article Headers
Message-ID: <slrnh1dk8h.67l.none@linux-3c4y.site> Subject: Re: Slrn Date: Fri, 22 May 2009 16:21:55 GMT From: r <none@linux.com> References: <slrnh1d5up.1ho.r.trev@ccla-05.fastwebit.ofc> <20090522130856.698.slrn@krille.blacktrash.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!newsfeed101.telia.com!nf02.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!tornado.fastwebnet.it!53ab2750!not-for-mail Newsgroups: news.software.readers User-Agent: slrn/0.9.8.1pl1 (Linux) Lines: 53 NNTP-Posting-Host: 1.255.62.74 X-Complaints-To: newsmaster@fastweb.it X-Trace: tornado.fastwebnet.it 1243009315 1.255.62.74 (Fri, NNTP-Posting-Date: Fri, 22 May 2009 18:21:55 CEST