Article View: news.software.readers
Article #47956Re: Slrn: marking article/thread read without moving to next unread?
From: c92... Peppe
Date: Mon, 12 Apr 1999 00:00
Date: Mon, 12 Apr 1999 00:00
36 lines
2146 bytes
2146 bytes
Thus wrote Heikki Kantola <he...@iki.fi>
> I've started to write a S-Lang macro, which would just mark article/
> thread and not jump to next unread after that as I occasionally want
> browse some groups with large trafic starting from the end of the
> article listing. I've figured out how to set one article read (by
> using "set_header_flags(HEADER_READ)" without movement), but is there
> any easy way to mark whole threads read without resorting to use
> internal "delete"-function?
How about the following function (only undergone a quick test):
define delete_enhanced ()
{
set_header_flags (HEADER_READ);
if (is_thread_collapsed ())
{
uncollapse_thread ();
variable n = thread_size () - 1;
while (n, n--)
{
() = header_down (1);
set_header_flags (HEADER_READ);
}
collapse_thread ();
}
}
definekey ("delete_enhanced", "d", "article");
Peppe
--
Let us drink a toast to all we love the best. __/-\__ Preben Guldberg
We will sleep through all the lectures, (o o) c92...@student.dtu.dk
And cheat on the exams, and we'll pass oOOo (_) oOOo---------------------
and be forgotten with the rest. --Tom Lehrer: Bright College Days
Technical Details
Message-ID:
<slrn7h472c.6d.c928400@urdybet.pbk.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mailReferences:
<slrn7h3o65.jcd.hezu@tuuri.ling.helsinki.fi>Show Full Headers
Complete Article Headers
Message-ID: <slrn7h472c.6d.c928400@urdybet.pbk.dk> Subject: Re: Slrn: marking article/thread read without moving to next unread? Date: Mon, 12 Apr 1999 00:00:00 +0000 From: c92...@student.dtu.dk (Peppe) References: <slrn7h3o65.jcd.hezu@tuuri.ling.helsinki.fi> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail X-Deja-AN: 465518857 X-Complaints-To: use...@news.net.uni-c.dk X-Trace: news.net.uni-c.dk 923933654 25684 130.225.71.226 (12 Apr 1999 16:14:14 GMT) Organization: Home of Peppe User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: c92...@student.dtu.dk NNTP-Posting-Date: 12 Apr 1999 16:14:14 GMT Newsgroups: news.software.readers,alt.lang.s-lang