Thread View: news.software.nn
3 messages
3 total messages
Started by Arthur L. Tailleur
Sat, 05 Nov 1994 13:14
nn - init file: using "on entry"
Author: Arthur L. Tailleur
Date: Sat, 05 Nov 1994 13:14
Date: Sat, 05 Nov 1994 13:14
16 lines
1100 bytes
1100 bytes
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!!!
Perhaps you could help?
Thanks
Re: nn - init file: using "on entry"
Author: Milt Epstein
Date: Tue, 08 Nov 1994 15:23
Date: Tue, 08 Nov 1994 15:23
54 lines
2445 bytes
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
Re: nn - init file: using "on entry"
Author: Nancy McGough
Date: Tue, 08 Nov 1994 17:24
Date: Tue, 08 Nov 1994 17:24
21 lines
1399 bytes
1399 bytes
epstein@ta6.cs.uiuc.edu (Milt Epstein) writes:
>on entry news.group1 news.group2 ...
> set sort-mode 2
>end
You might also try the following. The ``:'' means to execute before
nn collects the articles and ``local'' means that this sort-mode is
only used in news.group1 news.group2 ...
on entry news.group1 news.group2 ...
:local sort-mode 2
end
Hope this helps,
Nancy
--
/\_/\
( o.o ) Nancy McGough http://www.jazzie.com/ii/
> ^ < Infinite Ink ftp://ftp.ii.com/pub/ii
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