πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #221688

Re: Slrn: display read headers by default on entering group

#221688
From: Christian Ebert
Date: Tue, 03 Jun 2008 23:53
62 lines
3578 bytes
* TomB on Tuesday, June 03, 2008:
> I recently switched from Pan to slrn, and so far all goes well. I have
> however a couple of questions for which I cannot find an answer in the
> FAQ or man page.
> 
> First of all the default behaviour of slrn is to *not* show already read
> postings on entering a group. For now I'm using Esc-1 before hitting
> the space bar, but I wonder if there's some configuration setting for
> this.

Personally I've left this at the default and use a macro as
alternative, plus a macro that allows me to display all articles
at any time without exiting the group:

#v+
implements ("EnterTotal");

static define enter_total ()
{
  variable cutoff = get_variable_value ("query_read_group_cutoff");
  set_integer_variable ("query_read_group_cutoff", 0);
  set_prefix_argument (4);
  call ("select_group");
  reset_prefix_arg ();
  set_integer_variable ("query_read_group_cutoff", cutoff);
}

static define reenter_total ()
{
  variable msgid = extract_article_header ("Message-ID"),
    show_article = get_variable_value ("show_article"),
    isvisible = is_article_visible ();
  call ("quit");
  enter_total ();
  () = locate_header_by_msgid (msgid, 0);
  % display article if it was shown before:
  if (3 == isvisible and 0 == show_article ||
      3 != isvisible and 0 != show_article)
    call ("hide_article");
}


definekey ("EnterTotal->enter_total", "\r", "group");
definekey ("EnterTotal->reenter_total", "O", "article");
#v-

So, with space I enter the group with current article limit, with
return I enter the group with all articles.

While in article mode I can hit "O" to quickly display all read
articles -- for hiding them there's already a builtin command
expunge(), bound to "x" by default, iirc.

c

[ if your script chokes on the || operator, you'd have to replace
this with an orelse construct -- or get a recent S-Lang version ]
-- 
  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/
Technical Details
Message-ID: <20080603234537.318.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!krille.blacktrash.org!not-for-mail
References: <6Nf1k.63368$Ex2.41028@newsfe12.ams2>

Show Full Headers
Complete Article Headers
Message-ID: <20080603234537.318.slrn@krille.blacktrash.org>
Subject: Re: Slrn: display read headers by default on entering group
Date: Wed, 04 Jun 2008 01:53:20 +0200
From: Christian Ebert <blacktrash@gmx.net>
References: <6Nf1k.63368$Ex2.41028@newsfe12.ams2>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!krille.blacktrash.org!not-for-mail
Newsgroups: news.software.readers
Organization: Black Trash Productions <http://www.blacktrash.org/>
Lines: 62
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.albasani.net
 cqlj5CEiLNJ4H+8gUta718HPrEYgNHTswDf8GtBHXLdBSvjheF8ZW0OUcb5xbjRo4yX3lGJRmq3DvIBfZ1xz6th3z6CnjlYklVR1Rl2G5kG6ffsaNbafW8NPtRobM91a
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Tue, 3 Jun 2008 23:53:46 +0000 (UTC)
X-User-ID: xra7r/VFZ17Nlo26XUvXOGEdmrqomlH/lpzMFSFbHUE=
X-Face: )&#alA:[x"-#%%./(nuC&8n; #gqM; =mfY&ivRz@Gnv|AD_0l1Uz{fnJ^BW~OX[d;
 /)z!y V
Cancel-Lock: sha1:8aupOgPKaf4kPvXyJj5BHs7XaZI=
User-Agent: slrn/pre0.9.9-102/mm/ao/mc (Darwin)
X-NNTP-Posting-Host: 3gRxj7yj2xvP1l1HApCMme1rikf5xBwLg2HO7CryStc=
Mail-Copies-To: nobody