Thread View: news.software.readers
10 messages
10 total messages
Started by John Fuller
Wed, 07 Apr 1999 00:00
slrn-show full header
Author: John Fuller
Date: Wed, 07 Apr 1999 00:00
Date: Wed, 07 Apr 1999 00:00
15 lines
1033 bytes
1033 bytes
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. Thanks in advance. Email or newspost OK with me. -John Fuller -- "I don't need instructions, I have a hammer." --T.W. Weir
Re: slrn-show full header
Author: Adam Bailey
Date: Thu, 08 Apr 1999 00:00
Date: Thu, 08 Apr 1999 00:00
20 lines
1435 bytes
1435 bytes
John Fuller <dojes@ix.netcom.com> wrote: > 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. t will toggle between all headers, and normal viewer headers. And you can set which headers show up in your viewer by modifying the viewer_headers item in your .slrnrc. And I suggest a glance through both the slrn manual and the online help. -- Adam Bailey | Chicago, Illinois adamb@lull.org | "Logic is the art of going wrong with adamb@enteract.com | confidence." - George Bernard Shaw Finger for PGP | http://www.lull.org/adam/
Re: slrn-show full header
Author: Heikki Kantola
Date: Thu, 08 Apr 1999 00:00
Date: Thu, 08 Apr 1999 00:00
32 lines
1921 bytes
1921 bytes
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");
}
>--
>"I don't need instructions, I have a hammer."
> --T.W. Weir
ObNetPolice: Your sig delimiter appears to miss the space at the end,
did you insert that "sig" by some other way than defining filename in
signature-variable?
--
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.
Re: slrn-show full header
Author: 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.
Re: slrn-show full header
Author: Jan Hlavacek
Date: Fri, 09 Apr 1999 00:00
Date: Fri, 09 Apr 1999 00:00
65 lines
3157 bytes
3157 bytes
On 9 Apr 99 15:58:55 GMT, Peppe <c928400@student.dtu.dk> wrote:
> 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.
How about this (untested)
variable Headers_Visible = 0;
define my_toggle_headers ()
{
Headers_Visible = ~(Headers_Visible);
call ("toggle_headers");
}
definekey ("my_toggle_headers", "t", "article");
define show_headers ()
{
!if (Headers_Visible) {my_toggle_headers());
}
define hide_headers ()
{
if (Headers_Visible) {my_toggle_headers());
}
define article_mode_hook ()
{
show_headers ();
}
You could also make the Headers_Visible variable static/private so
nobody could accidentaly change it. You also have to make sure that
everywhere you curently use `call("toggle_headers")', you replace it by
`my_toggle_headers()', to the global variable always reflects the
current status.
--
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu> (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/
Re: slrn-show full header
Author: Vadim Zeitlin
Date: Fri, 09 Apr 1999 00:00
Date: Fri, 09 Apr 1999 00:00
14 lines
1161 bytes
1161 bytes
On 8 Apr 1999 04:37:17 GMT, Adam Bailey <adamb@lull.org> wrote: >And you can set which headers show up in your viewer by modifying the >viewer_headers item in your .slrnrc. My slrn (version info below) doesn't seem to understand this setting... Slrn Version: 0.9.5.3 (Sep 8 1998 20:29:45) S-Lang Library Version: 1.2.2 OS-Type: Unix Regards, VZ
Re: slrn-show full header
Author: Peppe
Date: Fri, 09 Apr 1999 00:00
Date: Fri, 09 Apr 1999 00:00
32 lines
1864 bytes
1864 bytes
Thus wrote Jan Hlavacek <lahvak@math.mps.ohio-state.edu> > On 9 Apr 99 15:58:55 GMT, Peppe <c928400@student.dtu.dk> wrote: > > 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. > How about this (untested) > variable Headers_Visible = 0; I take it to mean that you can actually set global variables this way. Great. [--- snip --- code ---] Seems robust enough to me. > You could also make the Headers_Visible variable static/private so > nobody could accidentaly change it. How would one go about this? Peppe PS. sorry for going off topic here. I think I saw mention of a slang group once, but it haven't propagated here. -- Preben Guldberg __/-\__ c928400@student.dtu.dk (o o) Any number is closer ---------------------oOOo (_) oOOo to seven than most... http://www.student.dtu.dk/~c928400
Re: slrn-show full header
Author: Adam Bailey
Date: Fri, 09 Apr 1999 00:00
Date: Fri, 09 Apr 1999 00:00
18 lines
1250 bytes
1250 bytes
zeitlin@dptmaths.ens-cachan.fr wrote: > On 8 Apr 1999 04:37:17 GMT, Adam Bailey <adamb@lull.org> wrote: >> And you can set which headers show up in your viewer by modifying the >> viewer_headers item in your .slrnrc. > > My slrn (version info below) doesn't seem to understand this setting... > > Slrn Version: 0.9.5.3 (Sep 8 1998 20:29:45) viewer_headers appeared in 0.9.5.4. Until then, it was either all the headers or the default headers, togglable with `t'. -- Adam Bailey | Chicago, Illinois adamb@lull.org | Finger/Web for PGP adamkb@aol.com | http://www.lull.org/adam/
Re: slrn-show full header
Author: Heikki Kantola
Date: Sat, 10 Apr 1999 00:00
Date: Sat, 10 Apr 1999 00:00
21 lines
1543 bytes
1543 bytes
Vadim Zeitlin <zeitlin@seth.lpthe.jussieu.fr> informed news.software.readers with the following: >On 8 Apr 1999 04:37:17 GMT, Adam Bailey <adamb@lull.org> wrote: >>And you can set which headers show up in your viewer by modifying the >>viewer_headers item in your .slrnrc. ^^^^^^ Should be visible_headers... > My slrn (version info below) doesn't seem to understand this setting... > >Slrn Version: 0.9.5.3 (Sep 8 1998 20:29:45) ...and it is new feature of version 0.9.5.4. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Re: slrn-show full header
Author: Adam Bailey
Date: Sat, 10 Apr 1999 00:00
Date: Sat, 10 Apr 1999 00:00
16 lines
1320 bytes
1320 bytes
Heikki Kantola <hezu@iki.fi> wrote: > Vadim Zeitlin <zeitlin@seth.lpthe.jussieu.fr> wrote: >> On 8 Apr 1999 04:37:17 GMT, Adam Bailey <adamb@lull.org> wrote: >>> And you can set which headers show up in your viewer by modifying >>> the viewer_headers item in your .slrnrc. > ^^^^^^ > Should be visible_headers... Grr. I knew I should have copied and pasted. -- Adam Bailey | Chicago, Illinois adamb@lull.org | Finger/Web for PGP adamkb@aol.com | http://www.lull.org/adam/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads