Article View: news.software.readers
Article #48061Re: Slrn: marking article/thread read without moving to next unread?
From: blue... Dawn Owens-Nicholson
Date: Fri, 16 Apr 1999 00:00
Date: Fri, 16 Apr 1999 00:00
28 lines
2052 bytes
2052 bytes
Peppe wrote:
> Where I to use "delete", the function might be
>
> define delete_thread_stay_put ()
> {
> collapse_thread ();
> if (header_down (1))
> {
> header_up (1);
> call ("delete")
> header_up (1);
> }
> else
> call ("delete")
> }
Actually, there are some problems with this. It marks read the entire
available thread instead of the subthread the user may have wanted to mark
read. Moving the cursor with call("delete") can't be compensated by
"() = header_up (1)" (which is what I think you meant to say) because the
delete intrinsic doesn't strictly move the cursor down one header.
The original question asked to avoid using the intrinsics, but there's no
good reason to avoid the delete_thread intrinsic. Also, there's a big
disadvantage to using a loop to put the cursor back where it started instead
of using the locate_header_by_msgid intrinsic.
Technical Details
Message-ID:
<slrn7hfd9j.51k.bluemoon@ux6.cso.uiuc.edu>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> <slrn7hbepo.2nb.c928400@urdybet.pbk.dk> <slrn7hf4jr.a1k.bluemoon@ux6.cso.uiuc.edu> <slrn7hf9ek.ae.c928400@urdybet.pbk.dk>Show Full Headers
Complete Article Headers
Message-ID: <slrn7hfd9j.51k.bluemoon@ux6.cso.uiuc.edu> Subject: Re: Slrn: marking article/thread read without moving to next unread? Date: Fri, 16 Apr 1999 00:00:00 +0000 From: blue...@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) 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> <slrn7hbepo.2nb.c928400@urdybet.pbk.dk> <slrn7hf4jr.a1k.bluemoon@ux6.cso.uiuc.edu> <slrn7hf9ek.ae.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-mail X-Deja-AN: 467305434 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.4 (UNIX) Newsgroups: news.software.readers,alt.lang.s-lang