Thread View: news.software.readers
6 messages
6 total messages
Started by Chris Green
Fri, 26 Nov 1999 00:00
Default to collapsed threads, it's easy!
Author: Chris Green
Date: Fri, 26 Nov 1999 00:00
Date: Fri, 26 Nov 1999 00:00
46 lines
1945 bytes
1945 bytes
After the long previous thread on this subject I've been slowly
working away at customising my .slrnrc and it turns out to be very
easy to write a S-Lang function to default to collapsed thread display
when reading articles in a thread.
Starting from the tin_art_next_unread_or_group () function in
tin-art.sl all one has to do is add a call to execute
toggle_collapse_threads at the end of the function. Thus I have:-
define tin_art_next_unread_or_group ()
{
if (get_header_flags () & HEADER_READ)
{
!if (header_next_unread ())
{
header_bob ();
if (get_header_flags () & HEADER_READ)
{
!if (header_next_unread ())
{
!if (is_article_visible ())
{
return;
}
art_hide_article_window ();
return;
}
}
}
}
art_select_article ();
toggle_collapse_threads ();
}
definekey ("tin_art_next_unread_or_group", "\t", "article");
Now, when I hit TAB I don't get the thread expanded in the article
list - bliss! :-)
(You need to define the toggle_collapse_threads() function in util.sl
of course, or use 'call' instead)
--
Chris Green (chris@x-1.net)
Re: Default to collapsed threads, it's easy!
Author: Chris Wilson
Date: Fri, 26 Nov 1999 00:00
Date: Fri, 26 Nov 1999 00:00
27 lines
1588 bytes
1588 bytes
In article <slrn83t7kr.s70.cgreen@shell.x-1.net>, cgreen@shell.x-1.net
says...
> After the long previous thread on this subject I've been slowly
> working away at customising my .slrnrc and it turns out to be very
> easy to write a S-Lang function to default to collapsed thread display
> when reading articles in a thread.
<snip about 35 lines of instructions>
You Unix guys amaze me :-) They describe a long convoluted method to
make threads start collapsed as "very easy", when in Gravity one just
puts a tick in the box entitled "Threads begin collapsed".
It was only after 2 weeks of struggling to get any type of news reader
to work under Linux that I finally realised that the *nix folk have a
totally different definition of easy to the Windows people <G>
--
Best Regards,
Chris Wilson
mailto:chris@formula3.demon.co.uk
http://www.formula3.demon.co.uk
Re: Default to collapsed threads, it's easy!
Author: Steve Martin
Date: Sat, 27 Nov 1999 00:00
Date: Sat, 27 Nov 1999 00:00
55 lines
3255 bytes
3255 bytes
On Fri, 26 Nov 1999 23:32:28 -0000, Chris Wilson <chris@formula3.demon.co.uk> wrote: >In article <slrn83t7kr.s70.cgreen@shell.x-1.net>, cgreen@shell.x-1.net >says... >> After the long previous thread on this subject I've been slowly >> working away at customising my .slrnrc and it turns out to be very >> easy to write a S-Lang function to default to collapsed thread display >> when reading articles in a thread. > >You Unix guys amaze me :-) They describe a long convoluted method to >make threads start collapsed as "very easy", when in Gravity one just >puts a tick in the box entitled "Threads begin collapsed". > There is the equivilent to Gravity's "tick the box" for "Threads begin collapsed" :- % If non-zero, threads will be uncollapsed when a group is entered set uncollapse_threads 0 .. however a little programming was required to perform the collapse at certain (other) times - not just when starting on a group. >It was only after 2 weeks of struggling to get any type of news reader >to work under Linux that I finally realised that the *nix folk have a >totally different definition of easy to the Windows people <G> > Without wishing to start an OS or newsreader war - many people find a plain text config file a lot easier and quicker to use. I personally find configuring tools via Windows dialogues extremely irritating - one can never remember where "everything is" - and often there is little to guide one's choice - you know what I mean - when you click the "help" or "what's this" for the "foobar option" is says "check this if you want the foobar option enabled" :-) Don't get me wrong - many winXX products do this a lot better than others and I'm not knocking Gravity or any of the other programs that people choose to use for *their* own reasons. I simply prefer to have a file that I can edit, swap with friends, save away somewhere .... and it can also contain many comments to tell me what everything does. It just so happens that this type of config interface is more commonly found on *nix-originated products. Incidently - this followup edited using Vim, posted via slrnpull by slrn running under Win95 - the best or worse of both worlds? :-) -- Steve ---------------------------------------------------- My email adr is steve at sjm d dot freeuk dot com else remove the beans from the spam before replying ----------------------------------------------------
Re: Default to collapsed threads, it's easy!
Author: Duncan Watson
Date: Sat, 27 Nov 1999 00:00
Date: Sat, 27 Nov 1999 00:00
53 lines
3086 bytes
3086 bytes
In article <MPG.12a928e67f3183f09896e0@news.CIS.DFN.DE>, Chris Wilson wrote: >In article <slrn83t7kr.s70.cgreen@shell.x-1.net>, cgreen@shell.x-1.net >says... >> After the long previous thread on this subject I've been slowly >> working away at customising my .slrnrc and it turns out to be very >> easy to write a S-Lang function to default to collapsed thread display >> when reading articles in a thread. > ><snip about 35 lines of instructions> > >You Unix guys amaze me :-) They describe a long convoluted method to >make threads start collapsed as "very easy", when in Gravity one just >puts a tick in the box entitled "Threads begin collapsed". > >It was only after 2 weeks of struggling to get any type of news reader >to work under Linux that I finally realised that the *nix folk have a >totally different definition of easy to the Windows people <G> Chris, The slrn conversation is more like: a. slrn doesn't have an option to default to collapsed threads b. your right but you could extend slrn with s-lang in .slrnrc to do so. a. hey it turns out it _is_ pretty easy to do in s-lang; here is my code. With something like Gravity on Win32 it would be more like. a. how do you do "some unsupported feature" b. sorry can't do that a. Could they add it to Gravity for me b. we will put it at the end of the list of things requested by one guy in a newsgroup a. thanks, maybe I will be able to do that someday. It is a difference in philosophy and having been trapped on Windows like platforms (dos, win, os/2, winnt, win95, win98) I appreciate being back on the extensible, powerful GNU/Linux platform. For instance my average connect time is now 1/60th of what it was on Win98 and I pull down 18 more newsgroups and the same amount of mail over a connection 1/2 the speed that I used in Munich. /Duncan -- Duncan Watson oOoOo Climbing Trip Plan #4 - The oOoOo Unix Sysadmin at Large oOoOo Canyonlands of CO in ???? oOoOo climer@io.com oOoOo oOoOo Portland, OR oOoOo oOoOo
Re: Default to collapsed threads, it's easy!
Author: Jeremy
Date: Sat, 27 Nov 1999 00:00
Date: Sat, 27 Nov 1999 00:00
19 lines
1293 bytes
1293 bytes
Chris Wilson <chris@formula3.demon.co.uk> wrote: > <snip about 35 lines of instructions> > > You Unix guys amaze me :-) They describe a long convoluted method to > make threads start collapsed as "very easy", when in Gravity one just > puts a tick in the box entitled "Threads begin collapsed". Ah, but what if Gravity didn't have that little box? It would then be *impossible* to have that feature, whereas adding it to slrn was easy. But, yes, I guess us Unix guys do have a somewhat different outlook. I find trying to configure somthing with the convoluted GUI Windows interface frustrating and difficult. -- Jeremy | jeremy@exit109.com
Re: Default to collapsed threads, it's easy!
Author: Sylvan Butler
Date: Mon, 29 Nov 1999 00:00
Date: Mon, 29 Nov 1999 00:00
26 lines
2189 bytes
2189 bytes
On Fri, 26 Nov 1999 23:32:28 -0000, Chris Wilson <chris@formula3.demon.co.uk> wrote:
>You Unix guys amaze me :-) They describe a long convoluted method to
>make threads start collapsed as "very easy", when in Gravity one just
>puts a tick in the box entitled "Threads begin collapsed".
Trouble is, he did NOT want "threads start collapsed" which is a trivial
option setting in slrn just as in gravity.
He did want "threads stay collapsed" which is a behavior not supported
by slrn. He was able to create this new behavior with a few lines of a
macro, similar to creating a word or excel macro.
Can you create a new behavior for gravity in less than 50 lines of macro
programming? Is that macro langauge a part of gravity or the OS or did
you have to buy/acquire it seperately? Does anyone stand behind using
that macro langauge with gravity to make certain it keeps working?
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
"Don't Tread On Me!"
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