Article View: news.software.readers
Article #55252Re: [slrn] Distinguishing between header versus article mode
From: Chris Green
Date: Tue, 14 Dec 1999 00:00
Date: Tue, 14 Dec 1999 00:00
43 lines
3460 bytes
3460 bytes
On 13 Dec 1999 23:59:25 GMT, Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu> wrote:
>So make one! You've got slrn source (if you want your changes to be in C)
>or you could make a macro that does it. I'll get you started with a macro:
>
> !if (is_article_visible ()) return ();
> variable current_article = extract_article_header ("Message-ID");
> if (locate_header_by_msgid (scroll_down_article, 0))
> {
> call ("article_linedn");
> () = locate_header_by_msgid (current_article, 0);
> }
>
>Feel free to bullet-proof that snippet and build it into a complete macro.
>Play around with things and have fun!
But this still misses the point, call ("article_linedn") *doesn't*
scroll one line down in the article, even when wrapped up in
is_article_visible() tests.
I have tried the above snippet of code, bound to the 'n' key. If you
hit 'n' when in a collapsed thread that is more than one page long
then you *still* get dropped back to the first message in the thread.
The whole problem is that the logic of article_linedn in slrn's C code
is such that it *doesn't* just attempt to scroll down one line in an
article. It has to *decide for itself* whether slrn is showing an
article or the article list or what. Then if it thinks an article is
being displayed it scrolls down one line. Unfortunately the tests in
slrn's C code don't work exactly the same as is_article_visible() does
and, if the thread is collapsed, the C code doesn't make the right
decision. This is why I think it's actually a bug, it's just rather
an abstruse bug. I can't imagine any reason why one would want the
article_linedn command to do what it does do in this particular case.
OK, so if I want to change the C code in slrn I can probably get what
I want, but I don't think it's seriously possible at all using macros
because the underlying article_linedn code can't be 'forced' to just
scroll down one line in an article.
--
Chris Green (chris@x-1.net)
Technical Details
Message-ID:
<slrn85cf0q.r49.cgreen@shell.x-1.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn847vtl.e03.cgreen@shell.x-1.net> <slrn84atjf.nq7.bluemoon@ux6.cso.uiuc.edu> <slrn84d5t3.lns.cgreen@shell.x-1.net> <slrn84dpsa.7fh.bluemoon@ux6.cso.uiuc.edu> <slrn84fhm9.osf.cgreen@shell.x-1.net> <slrn84gau1.5q3.bluemoon@ux6.cso.uiuc.edu> <slrn84n652.8qh.cgreen@shell.x-1.net> <slrn84o3vd.qo0.bluemoon@ux6.cso.uiuc.edu> <slrn84obh8.dam.cgreen@shell.x-1.net> <slrn84qlat.ojl.bluemoon@ux6.cso.uiuc.edu> <slrn84satm.j2i.cgreen@shell.x-1.net> <slrn850690.cv.sgibier@hermes.olympus.fr> <slrn851bl9.t3j.bluemoon@ux6.cso.uiuc.edu> <slrn852b6r.rt1.cgreen@shell.x-1.net> <slrn852kd6.iia.bluemoon@ux6.cso.uiuc.edu> <slrn859i52.l03.cgreen@shell.x-1.net> <slrn85b228.cs5.bluemoon@ux6.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn85cf0q.r49.cgreen@shell.x-1.net> Subject: Re: [slrn] Distinguishing between header versus article mode Date: Tue, 14 Dec 1999 00:00:00 +0000 From: cgreen@shell.x-1.net (Chris Green) References: <slrn847vtl.e03.cgreen@shell.x-1.net> <slrn84atjf.nq7.bluemoon@ux6.cso.uiuc.edu> <slrn84d5t3.lns.cgreen@shell.x-1.net> <slrn84dpsa.7fh.bluemoon@ux6.cso.uiuc.edu> <slrn84fhm9.osf.cgreen@shell.x-1.net> <slrn84gau1.5q3.bluemoon@ux6.cso.uiuc.edu> <slrn84n652.8qh.cgreen@shell.x-1.net> <slrn84o3vd.qo0.bluemoon@ux6.cso.uiuc.edu> <slrn84obh8.dam.cgreen@shell.x-1.net> <slrn84qlat.ojl.bluemoon@ux6.cso.uiuc.edu> <slrn84satm.j2i.cgreen@shell.x-1.net> <slrn850690.cv.sgibier@hermes.olympus.fr> <slrn851bl9.t3j.bluemoon@ux6.cso.uiuc.edu> <slrn852b6r.rt1.cgreen@shell.x-1.net> <slrn852kd6.iia.bluemoon@ux6.cso.uiuc.edu> <slrn859i52.l03.cgreen@shell.x-1.net> <slrn85b228.cs5.bluemoon@ux6.cso.uiuc.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 560507170 X-Complaints-To: abuse@easynet.net X-Trace: quince.news.easynet.net 945175702 80535 212.134.96.150 (14 Dec 1999 12:48:22 GMT) Organization: [posted via Easynet Ltd] User-Agent: slrn/0.9.5.7 (UNIX) NNTP-Posting-Date: 14 Dec 1999 12:48:22 GMT Newsgroups: news.software.readers