🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #55332

Re: [slrn] Distinguishing between header versus article mode

#55332
From: Chris Green
Date: Wed, 15 Dec 1999 00:00
65 lines
5099 bytes
>Wrong.  The problem for you is you're not setting slrn's cursor to the right
>place so article_linedn does what you want it to do (this means
>programmatically determining where the cursor has to be).  As for the logic
>of article_linedn, you've got that wrong too.  In article mode only, IF THE
>VISIBLE ARTICLE IS THE ARTICLE BEING POINTED TO BY THE CURSOR,
>article_linedn does precisely what you want--the visible article is scrolled
>one line down. Otherwise, there is either NO ARTICLE VISIBLE or THE CURSOR
>IS NOT POINTING TO THE VISIBLE ARTICLE.  In either of the latter two cases,
>article_linedn causes slrn to possibly download the article and show it to
>you (no scrolling happens if the article was downloaded otherwise the cached
>article is unhidden and scrolled down one line).  Readers who are paying
>attention will notice how the three cases in all caps map precisely to the
>output of is_article_visible().
>
>> 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.
>
>You're confusing yourself by thinking about collapsed threads--in slrn,
>uncollapsing threads and collapsing threads have an indirect relationship
>with scrolling an article one line down.  When threads are collapsed the
>interior articles are *completely inaccessible* to the cursor.  This is not
>a bug, it was intentionally designed this way.  To make them accessible one
>must first uncollapse the thread to get to them either explicitly (with
>uncollapse_threads() or uncollapse_all_threads()) or implicitly (by going to
>an article inside the collapsed thread--a variety of intrinsic and S-Lang
>functions will do this including scroll_dn and locate_header_by_msgid()).
>
In other words the cursor doesn't point at the article I'm reading
which seems a little odd to me.

However I will take a longer harder look at this (some time), thanks
for all your input.

>> 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.
>
>So, in other words, you don't *know* if what you want can be done (just like
>you didn't know what shortcomings exist using a macro with respect to
>redrawing the screen) but it's easier to publicly postulate and complain
>then it is to experiment, learn and write code.  You spend more time talking

I spend my whole day writing code, nowadays it's mostly in Java but
for the past twenty years or more I've been a C/C++ programmer.

Of course what I want *can* be done, whether it can be done relatively
simply without completely destroying slrn's innards is another matter.

I was after a simple[ish] way of getting what (still) seems to me to
be a perfectly normal thing to need - a way of scrolling down one line
in an article I'm viewing.  If it's not possible in slrn without a
major hack/re-write then it's probably not worth it.  I also would
prefer the change to either become part of slrn or to be a simple to
add external macro/script, having to re-apply a patch every time slrn
changes can become a chore.

-- 
Chris Green (chris@x-1.net)

Technical Details
Message-ID: <slrn85f2gi.vcj.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-mail
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> <slrn85cf0q.r49.cgreen@shell.x-1.net> <slrn85d62l.pc9.bluemoon@ux6.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn85f2gi.vcj.cgreen@shell.x-1.net>
Subject: Re: [slrn] Distinguishing between header versus article mode
Date: Wed, 15 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> <slrn85cf0q.r49.cgreen@shell.x-1.net> <slrn85d62l.pc9.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: 560945149
X-Complaints-To: abuse@easynet.net
X-Trace: quince.news.easynet.net 945261199 27566 212.134.96.150 (15 Dec 1999 12:33:19 GMT)
Organization: [posted via Easynet Ltd]
User-Agent: slrn/0.9.5.7 (UNIX)
NNTP-Posting-Date: 15 Dec 1999 12:33:19 GMT
Newsgroups: news.software.readers