Thread View: news.software.readers
1 messages
1 total messages
Started by J.B. Nicholson-Owens
Sat, 04 Mar 2000 00:00
Re: [slrn] Go to next thread
Author: 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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads