Article View: news.software.readers
Article #58914Re: [slrn] Go to next thread
From: J.B. Nicholson-Owens
Date: Sat, 04 Mar 2000 00:00
Date: Sat, 04 Mar 2000 00:00
46 lines
2233 bytes
2233 bytes
n@lieckfeldt.org.uk wrote:
> [T]he command to take me to the next unread thread, i.e. if Thread a) has
> got 15 unread articles but I would like to skip it to read thread b),
> is there a shortcut that can do that?
For reference, I'll call the "thread" the entire tree that contains the
article where the cursor is (as opposed to the set of articles from the
current article to that article's most distant child article).
#v+
define skip_to_next_unread_thread ()
{
if (is_thread_collapsed ()) () = header_down (1);
else
{
collapse_thread ();
uncollapse_thread ();
() = header_down (thread_size ());
}
if (andelse
{ get_header_flags () & HEADER_READ }
{ header_next_unread () == 0 })
return ();
}
#v-
You could add one line to this to make it automatically show the next
unread article (instead of just putting the cursor there) by appending
#v+
if (_is_article_visible () == 1) loop (2) call ("hide_article");
#v-
to the body of the function above. Normally I'd test this before
posting but no response has hit my server yet and I don't have slrn
access right now. I hope this helps.
> Something seems also to be wrong with the line feed in this article.
I'm not sure. Until I get a Unix box up and running, the newsreader I'm
using right now doesn't allow me to check that. Your post looked okay
on my end, but then I'd expect this newsreader to clean up malformed
posts.
Technical Details
Message-ID:
<jbn-E70E92.17534504032000@news>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<89ph83$a71$1@gxsn.com>Show Full Headers
Complete Article Headers
Message-ID: <jbn-E70E92.17534504032000@news> Subject: Re: [slrn] Go to next thread Date: Sat, 04 Mar 2000 00:00:00 +0000 From: "J.B. Nicholson-Owens" <jbn@mystery-train.pdnt.com> References: <89ph83$a71$1@gxsn.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 593240377 X-Complaints-To: abuse@pdnt.com X-Trace: sol.pdnt.net 952213720 209.16.217.234 (Sat, 04 Mar 2000 17:48:40 CST) User-Agent: MT-NewsWatcher/3.0 (PPC) NNTP-Posting-Date: Sat, 04 Mar 2000 17:48:40 CST Newsgroups: news.software.readers