Article View: news.software.readers
Article #47854Re: slrn-show full header
From: Peppe
Date: Fri, 09 Apr 1999 00:00
Date: Fri, 09 Apr 1999 00:00
60 lines
3335 bytes
3335 bytes
Thus wrote Heikki Kantola <hezu@iki.fi>
> John Fuller <dojes@ix.netcom.com> informed
> news.software.readers with the following:
> >How do I get slrn to show the full header when initially displaying the
> >article? I know I can get it if I save and download the article, but how do
> >I do it directly while online. It's OK if it shows full headers all the time
> >or easily toggles so I can just get as wanted.
> With the default Slrn keybindings you can press 't' to toggle whether
> to show full or only important headers (since v0.9.5.4 you can define
> those headers in visible_headers-variable). If you for some odd reason
> want always show full headers, you could try some S-Lang macro like
> this:
> startup_hook() {
> call("toggle_headers");
> }
Doesn't seem to work (I know it was just a quick suggestion). I get
the error
call: toggle_headers not in current keymap.
Instead one would have to use article_mode_hook() for these kind of things.
As I don't know how to check for the state of these togglings, I once came
up with the following approach. It lends itself to all three special editor
options being set (which I have), after which I found no need for the
"editor_command" option.
if (andelse {strlen (get_variable_value ("mail_editor_command"))}
{strlen (get_variable_value ("post_editor_command"))}
{strlen (get_variable_value ("score_editor_command"))})
set_string_variable ("editor_command", "0");
define article_mode_hook ()
{
if (get_variable_value ("editor_command") == "0")
{
call("toggle_headers");
set_string_variable ("editor_command", "1");
}
}
As usual, these go in eg .slrn.sl which is then "interpret .slrn.sl"�ed
from .slrnrc.
It would be benefitial if one could set a global variable here, but I
didn't stumble over a way to do so while reading the slang docs.
If the state of several toggles should be stored this way, some further
string manipulation is required.
Peppe
--
Preben Guldberg __/-\__ One-Shot Case Study, n.: The scientific
c928400@student.dtu.dk (o o) equivalent of the four-leaf clover, from
----------------------oOOo (_) oOOo which it is concluded all clovers possess
http://www.student.dtu.dk/~c928400/ four leaves and are sometimes green.
Technical Details
Message-ID:
<slrn7gs920.fc.c928400@urdybet.pbk.dk>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:
<7eha49$fpn@sjx-ixn10.ix.netcom.com> <slrn7got8i.3u8.hezu@tuuri.ling.helsinki.fi>Show Full Headers
Complete Article Headers
Message-ID: <slrn7gs920.fc.c928400@urdybet.pbk.dk> Subject: Re: slrn-show full header Date: Fri, 09 Apr 1999 00:00:00 +0000 From: c928400@student.dtu.dk (Peppe) References: <7eha49$fpn@sjx-ixn10.ix.netcom.com> <slrn7got8i.3u8.hezu@tuuri.ling.helsinki.fi> 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: 464472081 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@news.net.uni-c.dk X-Trace: news.net.uni-c.dk 923673537 27016 130.225.71.226 (9 Apr 1999 15:58:57 GMT) Organization: Home of Peppe Mime-Version: 1.0 User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: c928400@student.dtu.dk NNTP-Posting-Date: 9 Apr 1999 15:58:57 GMT Newsgroups: news.software.readers