🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #239027

Re: [slrn] I'd like to, but...

#239027
From: Christian Ebert
Date: Sun, 10 Jan 2010 15:13
70 lines
3948 bytes
* Indi on Friday, January 08, 2010:
> On 2010-01-08, Dan C <youmustbejoking@lan.invalid> wrote:
>> I use Pan, on Slackware.  I sometimes use slrn, as well.  The Slackware 
>> side of my brain tells me I should be using slrn all the time... ;)
>> 
>> The reason I don't, however, is this:  I like the ability that Pan 
>> provides me to browse backwards in a thread.  Often I want to be able to 
>> go back a few (or a few dozen) posts to see what somebody said earlier in 
>> a thread.  I have Pan set to only show "new" posts, but if there are new 
>> posts in an old thread, I can see the whole thread also (older posts are 
>> not "bolded" like the new posts, but still visible).  This is a "must-
>> have" feature for me in a newsreader.
>> 
>> Now, I know there is a magical keystroke sequence in slrn that will 
>> "reconstruct" a thread and (sort of) provide this same function.  What I 
>> would like to know is if there is a way to have this happen all the time, 
>> by changing some setup option (in .slrnrc).  I would still like slrn to 
>> only show threads with new posts in them, but to *also* show the older 
>> posts in those threads.  Is this possible?  Please enlighten me.
> 
> According to the FAQ (at http://www.slrn.org/docs/slrn-FAQ-3.html):
> 
> "I want to see full threads as soon as they contain at least one unread 
> article. Can slrn do this?
> 
> This is currently not implemented, although it should be possible to 
> achieve such an effect using a macro.
> 
> For many, this behaviour would be a useful compromise between the two 
> extremes of seeing all messages and seeing unread ones only, so this 
> feature might be added in a future version of slrn."
> 
> I searched for, but did not find a macro that does this...

Ok, I'll bite. Might need some refining and works best with a
local spool:

#v+
implements ("EnterWholeThreads");

static define enter_wholetreads () {
  variable next = 1;
  call ("select_group");
  collapse_threads ();
  set_prefix_argument (1);
  call ("get_parent_header");
  while (next > 0) {
    next = header_down (1);
    if (next > 0) {
      try {
        call ("get_parent_header");
      }
      catch AnyError;
      collapse_thread ();
    }
  }
  reset_prefix_arg ();
  call ("header_bob");
  uncollapse_threads ();
}

definekey ("EnterWholeThreads->enter_wholetreads", "\r", "group");
#v-

c
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
                     Ein deutscher Western/A German Western

         --->> http://www.blacktrash.org/underdogma/ccc.php
Technical Details
Message-ID: <td7p17xp0s1.ln2@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: <pan.2010.01.08.14.40.08@moria.lan> <7qpeb9FmqeU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <td7p17xp0s1.ln2@krille.blacktrash.org>
Subject: Re: [slrn] I'd like to, but...
Date: Sun, 10 Jan 2010 16:13:33 +0100
From: Christian Ebert <blacktrash@gmx.net>
References: <pan.2010.01.08.14.40.08@moria.lan> <7qpeb9FmqeU1@mid.individual.net>
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: 70
X-Trace: news.albasani.net
 qwN+dj0QjnPc82jrV2vV7FWPyHALSppb07R36s0TPdc7zC8HE1dS9mmtjIzdt+OTb11Z6llLwPvGFF/TaTOOwUm9PMZDjRhIulZWnY97jGBQEmm/znBSglL8C7TzNIeE
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Sun, 10 Jan 2010 15:13:42 +0000 (UTC)
X-User-ID: Dhy1TDwcv4sM7uEYg+lU8o2Vux2qKdHzbv+0EXnKdko=
X-Face: )&#alA:[x"-#%%./(nuC&8n; #gqM; =mfY&ivRz@Gnv|AD_0l1Uz{fnJ^BW~OX[d;
 /)z!y V
Cancel-Lock: sha1:pyOHmzyskkKR9fUX1J8DTKJysdo=
User-Agent: slrn/pre1.0.0-18/mm/ao/mc (Darwin)
X-NNTP-Posting-Host: vJ3RGi82CE4ErgZJFMsEKvJcLD0DFpw6GV8JEm8mg10=
Mail-Copies-To: nobody