πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #233368

Re: Slrn

#233368
From: Christian Ebert
Date: Fri, 22 May 2009 13:52
49 lines
3008 bytes
* 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
-- 
  Was heißt hier Dogma, ich bin Underdogma!
[ What the hell do you mean dogma, I am underdogma. ]
_F R E E_  _V I D E O S_  http://www.blacktrash.org/underdogma/
                          http://www.blacktrash.org/underdogma/index-en.html
Technical Details
Message-ID: <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.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!news.albasani.net!krille.blacktrash.org!not-for-mail
References: <slrnh1d5up.1ho.r.trev@ccla-05.fastwebit.ofc>

Show Full Headers
Complete Article Headers
Message-ID: <20090522130856.698.slrn@krille.blacktrash.org>
Subject: Re: Slrn
Date: Fri, 22 May 2009 15:52:21 +0200
From: Christian Ebert <blacktrash@gmx.net>
References: <slrnh1d5up.1ho.r.trev@ccla-05.fastwebit.ofc>
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.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!news.albasani.net!krille.blacktrash.org!not-for-mail
Newsgroups: news.software.readers
Organization: Black Trash Productions <http://www.blacktrash.org/>
Lines: 49
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.albasani.net
 akGY4Z25VoyFu74TEWosa4emDjLh+bUNPuz9eW/48rAj+57Fg1sfuXfqwUUlw1tUp6tiIV/Lr+2ix9uK8Y2zwAj4GFeFQ1070A7lleuAVtMmJv3aljmH2vtbckFR3Il4
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Fri, 22 May 2009 13:52:57 +0000 (UTC)
X-User-ID: AzemdRICdKva0rEp0O3MsOXptixkxkfsvvtrgH1R50s=
X-Face: )&#alA:[x"-#%%./(nuC&8n; #gqM; =mfY&ivRz@Gnv|AD_0l1Uz{fnJ^BW~OX[d;
 /)z!y V
Cancel-Lock: sha1:iroveVXKARDNO8ilQmgONmbO2es=
User-Agent: slrn/pre1.0.0-11/mm/ao/mc (Darwin)
X-NNTP-Posting-Host: LqWI084skTtuJzjB3fpi5FSz/HOmrYC78hWyfr0YJ7k=
Mail-Copies-To: nobody