🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #55270

Re: [slrn] Distinguishing between header versus article mode

#55270
From: Sylvan Butler
Date: Tue, 14 Dec 1999 00:00
72 lines
4269 bytes
On 14 Dec 1999 12:48:22 GMT, Chris Green <cgreen@shell.x-1.net> wrote:
>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*

No, it doesn't.

>scroll one line down in the article, even when wrapped up in
>is_article_visible() tests.

Right.  That's why the header selection is in there.

>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.

Then add some more around the code that uncollapses the thread first and
collapses it afterwards.

>The whole problem is that the logic of article_linedn in slrn's C code

That does sounds like a problem, but not the whole problem.  Part of the
problem is that you are stuck on what doesn't work instead of trying to
figure out what does work.

>OK, so if I want to change the C code in slrn I can probably get what

Yup.

>I want, but I don't think it's seriously possible at all using macros

Sure it is.  You just need to do it instead of merely complaining.

>because the underlying article_linedn code can't be 'forced' to just
>scroll down one line in an article.

article_linedn() does work in some situations.

The macro solution is then to only call it after you set up one of those
situations.

If you want your macro to be more simple, create another primitive in
'C' that works the way you want.

If you don't want to mess with 'C' and recompilation then do the work
in the macro.

Either way your problem is solveable, if you want to solve it.

sdb

-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
 "Don't Tread On Me!"

Technical Details
Message-ID: <slrn85d8gl.5b8.nospam+_no_Zs__9912@hpb13799z.zboi.hpz.com.invalid>
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>

Show Full Headers
Complete Article Headers
Message-ID: <slrn85d8gl.5b8.nospam+_no_Zs__9912@hpb13799z.zboi.hpz.com.invalid>
Subject: Re: [slrn] Distinguishing between header versus article mode
Date: Tue, 14 Dec 1999 00:00:00 +0000
From: nospam+_no_Zs__9912@hpb13799z.zboi.hpz.com.invalid (Sylvan Butler)
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>
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: 560661652
X-Original-NNTP-Posting-Host: hpb13799.boi.hp.com
Mail-Copies-To: never
X-Complaints-To: usenet@news.boi.hp.com
X-Trace: hpbs1500.boi.hp.com 945202194 24433 15.98.137.41 (14 Dec 1999 20:09:54 GMT)
Organization: Hewlett-Packard
User-Agent: slrn/0.9.5.7 (Linux)
Reply-To: amoeba@hpb13799.boi.hp.com
NNTP-Posting-Date: 14 Dec 1999 20:09:54 GMT
Newsgroups: news.software.readers