Article View: news.software.readers
Article #59825Re: SLRN Capital L
From: Drazen Kacar
Date: Thu, 30 Mar 2000 00:00
Date: Thu, 30 Mar 2000 00:00
75 lines
4441 bytes
4441 bytes
Dawn Owens-Nicholson wrote:
> Drazen Kacar wrote:
>
> > And it would be helpfull if slrn had command_after hook which would be
> > called after slrn completed processing any user command. Determining if
> > the article is visible after user typed h' (for example) is not the
> > easiest thing in the world.
>
> From the documentation on slrn's S-Lang API:
>
> If one only want to know whether or not there is an article visible in
> the window, then use
>
> _is_article_visible () & 1
>
> so the following is probably what you want to do:
>
> if (_is_article_visible () & 1) { ...article is visible... }
> else { ...article is invisible... }
Yes, but...
> While wrapping intrinsics means your macros won't be called by other
> people's macros and it's harder to combine them in custom ways, *sometimes*
> that's a good thing. Since it doesn't take much to discover this state of
> the screen, it's not a big deal to make your macros check for it.
The problem is when to call that. If you've just executed some macro, my
function needs to be called to execute that if statement and then do
something if something needs to be done. It's not a problem to discover
if article is visible, but it's a problem to have that code executed at
all times when visibility might have been changed.
> > So... John, could we have command_hook and some more get_* functions?
> > There is set_article_window_size(), but no get_article_window_size(),
> > so determining just where to put a window which shows X-Face is hard.
>
> Considering you can't create 'windows' on slrn's screen from S-Lang, you'll
> probably want to use replace_article() to replace the text of the current
> article.
No, I had something more perverse in mind. I want to have helper application
which will open its own X window and display X-Face in it above the things
you normally see in the terminal window. So the article stays the same.
Now, scrolling is a problem. The picture could be placed on the right
side of summary window, so it stays there all the time while article is
being displayed.
Or it could be put in the article window (aligned with headers; on the
right), but then article scrolling should make it disappear. I don't
think it's possible to interact with slrn's pager, so I don't think I'll
manage to do that.
> Depending on how much work you want to put into this, you could
> make textual windows with replace_article().
Maybe, but it's not worth the effort.
> > [get|set]_summary_window_size() would also be nice.
>
> I think it's a bad idea to have a large set of get/set functions each one
> tailored to a specific feature. It's better to have a set of arguments one
> can plug into a common get/set pair of functions (like slrnrc settings and
> get_variable_value()/set_[type]_variable()).
That would be fine. Although I think that each set function should have
corresponding get function.
--
.-. .-. I don't work for my employer.
(_ \ / _)
| dave@srce.hr
| dave@fly.srk.fer.hr
Technical Details
Message-ID:
<slrn8e7ias.mkf.dave@svarozic.srce.hr>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:
<slrn8dru4f.1fu.ajlewis2@sidekick.com> <slrn8dsj5c.d5.efflandt@efflandt.xnet.com> <slrn8dsllf.nk.ajlewis2@sidekick.com> <slrn8dt1tg.g53.dave@svarozic.srce.hr> <86d7ohw8in.fsf@ragndahl.cx> <slrn8e6k9p.lrb.dave@svarozic.srce.hr> <slrn8e6n1m.lt6.dave@svarozic.srce.hr> <slrn8e7d60.2s1.bluemoon@ux6.cso.uiuc.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn8e7ias.mkf.dave@svarozic.srce.hr>
Subject: Re: SLRN Capital L
Date: Thu, 30 Mar 2000 00:00:00 +0000
From: dave@srce.hr (Drazen Kacar)
References: <slrn8dru4f.1fu.ajlewis2@sidekick.com> <slrn8dsj5c.d5.efflandt@efflandt.xnet.com> <slrn8dsllf.nk.ajlewis2@sidekick.com> <slrn8dt1tg.g53.dave@svarozic.srce.hr> <86d7ohw8in.fsf@ragndahl.cx> <slrn8e6k9p.lrb.dave@svarozic.srce.hr> <slrn8e6n1m.lt6.dave@svarozic.srce.hr> <slrn8e7d60.2s1.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: 604534742
Mail-Copies-To: never
X-Complaints-To: abuse@news.carnet.hr
X-Trace: bagan.srce.hr 954452374 22426 161.53.2.157 (30 Mar 2000 21:39:34 GMT)
X-Face: 'UIE}WabGB0+U>p-#(hp<_+AD2{H],=qR*jHfm$/e]l0(kU3oOYc5lqG6gg>[\h^IOc{'siD6#!T&loIShgmYHz3#+*D38:|`~\BE,(W~Ol9BDfDwk'lKJ;Z{sY8E9(ME.E]'wvNO`$n#,;9Z`tOFcW/nHZq!BOSrM>V?C<5DTw=<$<xxB~RP@|-Co<|COgeVi1ozw_W>{c{M2V+|)0jSUl&!+8%8nIBF(u:E>SZWM^e
Organization: Δardak ni na nebu, ni na zemlji
X-Attribution: Dave
User-Agent: slrn/0.9.6.0 (SunOS)
NNTP-Posting-Date: 30 Mar 2000 21:39:34 GMT
Newsgroups: news.software.readers