Article View: news.software.readers
Article #55188Re: [slrn] Distinguishing between header versus article mode
From: Dawn Owens-Nicholson
Date: Mon, 13 Dec 1999 00:00
Date: Mon, 13 Dec 1999 00:00
85 lines
4618 bytes
4618 bytes
Chris Green wrote:
> Gets the article I'm viewing (not sure if this is necessary)
> Switches from collapsed threads back to uncollapsed threads
> Makes sure the article is visible
> Scrolls down one line in the article
> Switches back to collapsed threads
> Makes sure the article is visible
What happened when you tested this out by making your own article_linedn
replacement macro (or, if you prefer patch for slrn) that follows this
logic?
> However there are some difficulties with this:-
So code something up and test it out--experiment! All the time you've spent
writing articles in this thread could have been spent solving your own
problem.
> I *still* think it would be a useful addition to slrn to have a
> 'primitive' which simple scrolls down one line in an article.
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!
> The article_dn command does much more than this (take a look at the code,
> it's quite complex). I can't believe that the addition of a new
> command is that difficult and it would be helpful to a number of
> people (me included!).
Okay, you can't believe it's that hard to add a new command, so add one!
In <slrn852b6r.rt1.cgreen@shell.x-1.net> you said:
> One needs a means (THE OBVIOUS ONE BEING A DIFFERENT MODE FOR ARTICLE
> VIEWING AND ARTICLE INDEX VIEWING) to differentiate between a command
> which moves down the list and one which moves down the article.
The emphasis is mine. Given the above request it is plain to see you weren't
aware of all is_article_visible() can do for you.
I responded and in <slrn859i52.l03.cgreen@shell.x-1.net> you said:
> I don't have any problems moving around in the header list and I never
> have done. I've never said anything about this at all so I don't
> really understand why you're telling me this.
Then I'll say it another way: slrn's is_article_visible() already
distinguishes between these two states in article mode, but I'll throw in
is_group_mode() so we're not thinking myopically. The latter two conditions
use the terminology you used in <slrn852b6r.rt1.cgreen@shell.x-1.net>:
if (is_group_mode ())
{
% In group mode.
}
else if (is_article_visible ())
{
% In article viewing mode.
}
else
{
% In article index mode.
}
is_article_visible() is darn handy!
> Other people seem to have similar problems/misunderstandings with
> regard to the article versus article header display non-modes.
Maybe those other people need to use is_article_visible()? I don't recall
anyone else asking and I doubt there's many people, but it's your time and
effort we're talking about--so feel free to help them out by designing the
change, coding it and debugging it. I'm sure they'd appreciate a ready-made
solution.
Technical Details
Message-ID:
<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-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>Show Full Headers
Complete Article Headers
Message-ID: <slrn85b228.cs5.bluemoon@ux6.cso.uiuc.edu> Subject: Re: [slrn] Distinguishing between header versus article mode Date: Mon, 13 Dec 1999 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) 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> 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: 560312774 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.7 (UNIX) Newsgroups: news.software.readers