🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #72618

[slrn] art_bob and art_eob oddities

#72618
From: J.B. Nicholson-Owens
Date: Fri, 23 Feb 2001 19:56
58 lines
3029 bytes
The following oddities aren't necessarily limited to art_bob and
art_eob.  Those two functions demonstrate the issue well so I'll use
them as examples.

Try this:

 (1) Enter article mode (pick a newsgroup and enter it) then pick an article
     to view and look at it.

 (2) Pick a long article (multiple pages), move the cursor to that article
     and execute art_eob (bound to ">" by default).

 (3) Notice how you are now seeing the first page of the article even though
     you ran the function to see the last page.  art_[eb]ob are just like
     scroll_dn when the cursor is not on the article being seen (when
     _is_article_visible() & 2 == 0).

Now my questions:

 Q1. Is this buggy behavior?

       Yes -- instructing slrn to see the last page should do exactly that.

       No -- scroll_dn doesn't work that way (when the cursor isn't attached
	     to the article in slrn's buffer slrn downloads the article and
	     shows you the first page of the downloaded article, not the
	     second page).  This means it's consistent with that function.

 Q2. Is the current behavior desirable?

       Yes -- it's been around so long people have come to expect it
              (including writing code based on this behavior).

       No -- since it's buggy it should be fixed.

 Q3. Should the current behavior be changed?

       Yes -- buggy behavior should be fixed.

       No -- either because it's been around this way or because it's just
	     not wrong it should not change.

As you can see I'm of two minds on this one.  I lean a little more toward
interpreting this is as consistent behavior that should remain.  It's easily
modified in macros so it's not a big deal but I thought it might strike
someone as odd somewhere.

The one place where I can see it being a problem is in macros where
call("scroll_dn") is used to show the beginning of an article instead of

   !if (_is_article_visible () & 1) call ("hide_article");
   call ("art_bob");

The former might be used because that's probably how one uses slrn
interactively.  The latter is more explicit (and thus more foolproof).

Comments?
Technical Details
Message-ID: <slrn99dg0d.71.jbn@next.forestfield.org>
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!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn99dg0d.71.jbn@next.forestfield.org>
Subject: [slrn] art_bob and art_eob oddities
Date: Fri, 23 Feb 2001 19:56:31 +0000
From: jbn@forestfield.org (J.B. Nicholson-Owens)
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!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail
Newsgroups: news.software.readers
Organization: Forest Field OmniMedia
Lines: 57
NNTP-Posting-Host: forestfield.org (208.216.67.173)
X-Trace: fu-berlin.de 982958191 25007417 208.216.67.173 (16 [35848])
User-Agent: slrn/0.9.6.4 (Unix)