Article View: news.software.nn
Article #607Re: How :show groups on nn entry?
From: 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!
Technical Details
Message-ID:
<595@texas.dk>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!gmdzi!unido!mcsun!sunic!dkuug!tidk!stormReferences:
<277@fdls.odag.or.gov>Show Full Headers
Complete Article Headers
Message-ID: <595@texas.dk> Subject: Re: How :show groups on nn entry? Date: Wed, 20 Jun 1990 21:51:27 +0000 From: storm@texas.dk (Kim F. Storm) References: <277@fdls.odag.or.gov> 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!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm Newsgroups: news.software.nn Organization: Texas Instruments, Denmark Lines: 58 Posted: Wed Jun 20 22:51:27 1990