Thread View: news.software.nn
2 messages
2 total messages
Started by Doug Walker
Wed, 13 Jun 1990 22:54
How :show groups on nn entry?
Author: Doug Walker
Date: Wed, 13 Jun 1990 22:54
Date: Wed, 13 Jun 1990 22:54
20 lines
1454 bytes
1454 bytes
Is there a way to make nn 6.4.4 automatically issue a ':show groups' command before (or after) display of the first group menu on start up? Right now, I have gotten close to this by placing the following COMMAND GROUP in my init file: on entry comp.sys.ncr :show groups end Since comp.sys.ncr is my first specified group to read, this will do what I want. But . . . it will only work IF there are unread articles in comp.sys.ncr! With the multitude of features available in nn, I feel quite certain I'm simply overlooking the obvious. Thanks for the assist. -- ----------------------------------------------------------------------------- Doug Walker uunet!fdls!dougw -or- dougw@fdls.odag.or.gov Oregon Department of Agriculture, Salem, Oregon (503) 378-3790
Re: How :show groups on nn entry?
Author: Kim F. Storm
Date: Wed, 20 Jun 1990 21:51
Date: Wed, 20 Jun 1990 21:51
58 lines
2547 bytes
2547 bytes
dougw@fdls.odag.or.gov (Doug Walker) writes: >Is there a way to make nn 6.4.4 automatically issue a ':show groups' command >before (or after) display of the first group menu on start up? No, that is not possible. However, patch #6 will include a new construct: on start-up :show groups end Unfortunately, to make this work as intended, I have been forced to change the semantics of "entry" and "start-up" macros a little bit: As of 6.4.6, ALL initial ":" commands in entry macros will be executed prior to the collection of the articles (and presentation of the first menu page). Previously, only :set, :unset, and :local variable settings were executed before the collection of the articles in the group. This may cause problems if anybody is relying on the old behaviour, e.g. having something like on entry :set .... :debug end in the entry macro and expect the :debug command to be executed after articles have been collected (I'm sorry that I cannot think of a better example, but I really think entry macros are used more or less exclusively for variable settings in practice). However, to allow : commands to be "postponed", there is a new meta-notation in entry macros; a double colon "::" will postpone the execution of the corresponding (and all following) commands until the first menu page is shown), e.g. on entry :set .... ::debug end Notice that commands which can be bound to keys will be ignored in an entry macro if preceded by a :, e.g. on entry :select-subject end The solution is to use the command name without the :, or use the double :: since both methods will postpone the execution. Since patch #6 isn't released yet, I still have a chance to change my mind if I receive objections to this, admittedly, incompatible change. Let me know what you think! -- Kim F. Storm <storm@texas.dk> No news is good news, Texas Instruments A/S, Denmark but nn is better!
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