Article View: news.software.readers
Article #48088Re: Slrn: marking article/thread read without moving to next unread?
From: c92... Peppe
Date: Sat, 17 Apr 1999 00:00
Date: Sat, 17 Apr 1999 00:00
61 lines
3655 bytes
3655 bytes
Thus wrote Dawn Owens-Nicholson <blue...@ux6.cso.uiuc.edu>
> 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.
Perhaps it is just me, but to me there is a strong distinction between
thread and subthread. So when someone asks for a way to delete a
thread, I whack the whole thread.
> 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.
Excactly what the purpose of the "if header_down (1)" test was for.
Are there cases where this test will fail?
> The original question asked to avoid using the intrinsics, but there's no
> good reason to avoid the delete_thread intrinsic.
Except that it may only delete subthread, depending on which article
in the thread you are on.
As I see it, one advantage of using the intrinsic functions, rather
than the internal ones (which I call with 'call("delete")' and so) is
that the internal functions may or may not move the cursor, depending
on position on the screen and other things (eg. numerically tagging
moves if not already tagged, stays put if it was).
> 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.
Granted, the loop is an awkward hack. At one point I experienced
problems with locate_header_by_msgid, so I have avoided it since.
I should make further tests to get more comfortable with it, but in
the mean time I resort to work arounds.
Peppe
--
Preben Guldberg c92...@student.dtu.dk http://www.student.dtu.dk/~c928400/
I don't like people to get the idea that I have to do this for a living.
I mean, it isn't as though I had to do this, you know, I could be making,
oh, 3000 dollars a year just teaching. --Tom Lehrer: Lobachevsky
Technical Details
Message-ID:
<slrn7hglm7.1hh.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> <slrn7hbepo.2nb.c928400@urdybet.pbk.dk> <slrn7hf4jr.a1k.bluemoon@ux6.cso.uiuc.edu> <slrn7hf9ek.ae.c928400@urdybet.pbk.dk> <slrn7hfd9j.51k.bluemoon@ux6.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn7hglm7.1hh.c928400@urdybet.pbk.dk> Subject: Re: Slrn: marking article/thread read without moving to next unread? Date: Sat, 17 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> <slrn7hbepo.2nb.c928400@urdybet.pbk.dk> <slrn7hf4jr.a1k.bluemoon@ux6.cso.uiuc.edu> <slrn7hf9ek.ae.c928400@urdybet.pbk.dk> <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-mail X-Deja-AN: 467511013 X-Complaints-To: use...@news.net.uni-c.dk X-Trace: news.net.uni-c.dk 924341830 29442 130.225.71.226 (17 Apr 1999 09:37:10 GMT) Organization: Home of Peppe User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: c92...@student.dtu.dk NNTP-Posting-Date: 17 Apr 1999 09:37:10 GMT Newsgroups: news.software.readers,alt.lang.s-lang