🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by A. Deckers Thu, 17 Jul 1997 00:00
slrn: group_mode_hook problem
#35248
Author: A. Deckers
Date: Thu, 17 Jul 1997 00:00
47 lines
1481 bytes
[supersedes previous version which didn't include slrn compilation
info]

At the top of my .slrn.sl file, I have the following:

define group_mode_hook ()
{
   variable my_sorting_method = 7;

   if (is_substr(current_newsgroup(), "es.news"))
   {
      my_sorting_method = 8;
   }

   set_integer_variable ("sorting_method", my_sorting_method);

}

However, this seems to be executed when I _exit_ a group, not when I
_enter_, as I would expect. So, am I being dense or is this a bug?

This is with:

Slrn Version: 0.9.4.3 (Jul 13 1997 23:42:17)
S-Lang Library Version: 0.99.38
OS-Type: Unix

slrn compiled with support for:
	character set mapping
	nntp (SLtcp socket code)
	spool
	inews
	slrnpull
	S-Lang Macros

Default server object: nntp
Default posting mechanism: nntp

Cheers,

Alain

-- 
I-hate-cyber-promo@man.ac.uk (Alain Deckers)

Re: slrn: group_mode_hook problem
#35268
Author: Byrial Jensen
Date: Fri, 18 Jul 1997 00:00
19 lines
1059 bytes
A. Deckers <I-hate-cyber-promo@man.ac.uk> wrote:
>
>At the top of my .slrn.sl file, I have the following:
>
>define group_mode_hook ()
>[...]
>
>However, this seems to be executed when I _exit_ a group, not when I
>_enter_, as I would expect. So, am I being dense or is this a bug?

It is not bug, because it behaves like it should. You are in group mode
when you can choose between the different news groups. When you have
choosen a specific group, you then enter the _article mode_.

Regards,
- Byrial

Re: slrn: group_mode_hook problem
#35277
Author: A. Deckers
Date: Fri, 18 Jul 1997 00:00
27 lines
1532 bytes
In <slrn5su483.1a3.gossamer@penguin.glasswings.com.au>,
	Bek Oberin <gossamer@glasswings.com.au> wrote:
>Jan Hlavacek (lahvak+n@math.ohio-state.edu) wrote...
>> On 17 Jul 1997 10:13:57 GMT, A. Deckers <I-hate-cyber-promo@man.ac.uk> wrote:
>> >At the top of my .slrn.sl file, I have the following:
>> >define group_mode_hook ()
>> Group mode is the mode slrn is in when it displays the list of
>> groups.  When it displays the list of articles, it is in ARTICLE
>> mode.  So what you want to do is call it article_mode_hook.

Thanks, I'll RTFM a little more carefully next time. Sorry.

>I don't know if it's just me, but I find having these things called
>group_mode and article_mode very confusing.  I make that same mistake
[...]

Agreed.

Cheers,

Alain

-- 
I-hate-cyber-promo@man.ac.uk (Alain Deckers)

Re: slrn: group_mode_hook problem
#35287
Author: Bjoern Frantzen
Date: Fri, 18 Jul 1997 00:00
16 lines
888 bytes
A. Deckers <I-hate-cyber-promo@man.ac.uk> wrote:

>At the top of my .slrn.sl file, I have the following:
>
>define group_mode_hook ()
>{
>   variable my_sorting_method = 7;

Change group_mode_hook to article_mode_hook, see .../slrn/doc/slrn.sl

-- 
      -<  Bj�rn  >-


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