🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6707

Re: nn - init file: using "on entry"

#6707
From: Milt Epstein
Date: Tue, 08 Nov 1994 15:23
54 lines
2445 bytes
tailleur@satelnet.org (Arthur L. Tailleur) writes:

>I have been attempting to use the "on entry" command group in my personal
>init file.  I would like nn to "sort lexical" but have not had any
>success so far.
>
>my init file had these lines
>
>  on entry
>        :sort lexical
>  end
>
>I noticed that the nn man states that you are to use macro format! but
>I've had more than a little frustration in determining what the hell that
>is!!!

I see two potential sources of problems here; I don't think you're
quite being clear with what you want and what you've tried.

First, "on entry" macros are meant to be used when you want to do
certain things when you enter particular newsgroups; those newsgroups
are listed on the same line as the "on entry", as such:

on entry news.group1 news.group2 ...
..
end

If there's something you want done all the time, just set that up
"globally" in your init file.

Second, changing how sorting is done is not handled as you have it
above.  There is a variable sort-mode that controls what kind of
sorting is used.  It is an integer variable; I believe the range of
values is 0-4, with 2 being lexical (check the man page for the exact
details).  So you could change the sort-mode in an "on entry" macro
(I'm not sure whether you'd have to tell it explicitly to sort after
that or not; I suspect not).

So, if you want nn to sort lexically all the time, simply add the
following line somewhere in your init file:

set sort-mode 2

If you want only certain groups to be sorted lexically, try:

on entry news.group1 news.group2 ...
   set sort-mode 2
end

-- 
Milt Epstein
Department of Computer Science
University of Illinois
epstein@cs.uiuc.edu
Technical Details
Message-ID: <epstein.784308212@ta6.cs.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!ta6.cs.uiuc.edu!epstein
References: <39g0gd$jd2@sefl.satelnet.org>

Show Full Headers
Complete Article Headers
Message-ID: <epstein.784308212@ta6.cs.uiuc.edu>
Subject: Re: nn - init file: using "on entry"
Date: Tue, 08 Nov 1994 15:23:32 +0000
From: epstein@ta6.cs.uiuc.edu (Milt Epstein)
References: <39g0gd$jd2@sefl.satelnet.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!ta6.cs.uiuc.edu!epstein
Newsgroups: news.software.nn
Organization: University of Illinois at Urbana
Lines: 54
Reply-To: epstein@cs.uiuc.edu
NNTP-Posting-Host: ta6.cs.uiuc.edu