🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #239033

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

#239033
From: Dan C
Date: Sun, 10 Jan 2010 17:38
63 lines
3201 bytes
On Sun, 10 Jan 2010 17:30:39 +0100, Christian Ebert wrote:

> * Christian Ebert on Sunday, January 10, 2010:
>> * Indi on Friday, January 08, 2010:
>>> 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:
> 
> A bit more elegant and mapped to <space>, so the default keybinding for
> entering a group is not overridden:
> 
> #v+
> implements ("EnterWholeThreads");
> 
> static define enter_wholetreads () {
>   variable next = 1;
>   call ("select_group");
>   collapse_threads ();
>   set_prefix_argument (1);
>   while (next > 0) {
>     try {
>       call ("get_parent_header");
>     }
>     catch AnyError;
>     collapse_thread ();
>     next = header_down (1);
>   }
>   reset_prefix_arg ();
>   call ("header_bob");
>   uncollapse_threads ();
> }
> 
> definekey ("EnterWholeThreads->enter_wholetreads", " ", "group"); #v-
> 
> So, when one hits the spacebar in group view the group is entered and
> all threads containing unread posting are shown completely as long as
> the posts are available from the server.

Cool!  I will try this later when I have some time.  I'm assuming I save 
the above text to <whatever.sl> and then add a line to ~/.slrnrc such as:

interpret "whatever.sl"

Is that correct?


-- 
"Ubuntu" -- an African word, meaning "Slackware is too hard for me".
"Bother!" said Pooh, as he wiped the vomit from his chin.
Usenet Improvement Project: http://twovoyagers.com/improve-usenet.org/
Technical Details
Message-ID: <pan.2010.01.10.17.39.36@moria.lan>
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!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail
References: <pan.2010.01.08.14.40.08@moria.lan> <7qpeb9FmqeU1@mid.individual.net> <td7p17xp0s1.ln2@krille.blacktrash.org> <fubp17xb5u1.ln2@krille.blacktrash.org>

Show Full Headers
Complete Article Headers
Message-ID: <pan.2010.01.10.17.39.36@moria.lan>
Subject: Re: [slrn] I'd like to, but...
Date: Sun, 10 Jan 2010 17:38:54 +0000
From: Dan C <youmustbejoking@lan.invalid>
References: <pan.2010.01.08.14.40.08@moria.lan> <7qpeb9FmqeU1@mid.individual.net> <td7p17xp0s1.ln2@krille.blacktrash.org> <fubp17xb5u1.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.dca.giganews.com!nntp.giganews.com!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail
Newsgroups: news.software.readers
Organization: Dunedain
X-Editor: vim 7.2
X-OS-Version: Slackware Linux 13.0 (custom 2.6.30.5)
User-Agent: Pan/0.133 (House of Butterflies)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 63
NNTP-Posting-Host: 2ef4a900.news.astraweb.com
X-Trace: DXC=\C0=:B>66ESZio4aKR`fh\L?0kYOcDh@ZhDK9c[@\oNPkY3T1VMBATU3BkC=Wm:kXXX0HRO=[@kkPAlEXeY70\RV