Article View: news.software.readers
Article #48023Re: Slrn: marking article/thread read without moving to next unread?
From: c92... Peppe
Date: Thu, 15 Apr 1999 00:00
Date: Thu, 15 Apr 1999 00:00
56 lines
2667 bytes
2667 bytes
Thus wrote Srinivasa SA <s...@hpprobe.div111.bell-labs.com>
> I was searching for the thread-kill function for slrn in the
> newsgroup and found yours:
> But the macro you gave didn't work.
> Any hints?
[--- snip --- errors ---]
> I put the following code in .slrnrc:
> %
> % mark article/thread read without jumping to next unread.
> % From: he...@iki.fi (Heikki Kantola)
> % Date: 13 Apr 1999 09:10:15 GMT
> %
> define mark_thread_read()
> {
> variable status;
> if (is_group_mode ())
> error (_function_name () + " doesn't work in group mode!");
> set_header_flags(HEADER_READ);
> if(thread_size() > 1)
This should be "if(is_thread_collapsed())" instead. thread_size() may
return values higher than one for subthreads of an uncollapsed thread.
> {
> uncollapse_thread ();
> loop(thread_size() - 1)
> {
> () = header_down(1);
> set_header_flags(HEADER_READ);
> }
> collapse_thread ();
> }
> }
> definekey("mark_thread_read","D","article");
Functions like these are not regular slrn commands. They are s-lang
functions that needs to be interpreted seperately. To do so, put the
function(s) in a seperate file, eg. .slrn.sl. Now add
interpret .slrn.sl
to your .slrnrc.
Peppe
--
[...] a theory I have held for some __/-\__ Preben Guldberg
time, to the effect that the reason (o o) c92...@student.dtu.dk
most folk songs are so atrocious is oOOo (_) oOOo---------------------
that they were written by the people. --Tom Lehrer: Clementine (intro)
Technical Details
Message-ID:
<slrn7hbepo.2nb.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> <slrn7h472c.6d.c928400@urdybet.pbk.dk> <slrn7h4883.or7.davis@aluche.mit.edu> <slrn7h62fn.s3k.hezu@tuuri.ling.helsinki.fi> <slrn7h6vl6.103.c928400@urdybet.pbk.dk> <slrn7h8g72.8s3.hezu@tuuri.ling.helsinki.fi> <slrn7hac9a.upb.sas@hpprobe.div111.bell-labs.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn7hbepo.2nb.c928400@urdybet.pbk.dk> Subject: Re: Slrn: marking article/thread read without moving to next unread? Date: Thu, 15 Apr 1999 00:00:00 +0000 From: c92...@student.dtu.dk (Peppe) References: <slrn7h3o65.jcd.hezu@tuuri.ling.helsinki.fi> <slrn7h472c.6d.c928400@urdybet.pbk.dk> <slrn7h4883.or7.davis@aluche.mit.edu> <slrn7h62fn.s3k.hezu@tuuri.ling.helsinki.fi> <slrn7h6vl6.103.c928400@urdybet.pbk.dk> <slrn7h8g72.8s3.hezu@tuuri.ling.helsinki.fi> <slrn7hac9a.upb.sas@hpprobe.div111.bell-labs.com> 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: 466662174 X-Complaints-To: use...@news.net.uni-c.dk X-Trace: news.net.uni-c.dk 924170942 30374 130.225.71.226 (15 Apr 1999 10:09:02 GMT) Organization: Home of Peppe User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: c92...@student.dtu.dk NNTP-Posting-Date: 15 Apr 1999 10:09:02 GMT Newsgroups: news.software.readers,alt.lang.s-lang