🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6552

Re: How do I select all articles in one fell swoop?

#6552
From: Alex Martelli
Date: Mon, 17 Oct 1994 16:33
34 lines
2170 bytes
jzero@netcom.com (Jim Nakamura) writes:

>I guess the title says it all.  TIA to a very helpful group.

You have already received excellent answers, I see, but I still wanted
to post my little favourite patch... in normal nn, when I type = <enter> at
the article selection menu, it default to "same regular expression as last
time", but it gives me an error message about "no previous expression"
if I haven't yet entered one this session. I would prefer this sequence to
_default_ to some expression, and I think that '^' ("match anything") is
best, since most frequently used (to do it properly would no doubt 
require adding another variable...).

The diff in menu.c is modest indeed:

2073,2077c2073,2076
< 	 if (regular_expr == NULL) {
< 	     /* AM 9406012: disabled: msg("No previous expression"); */
< 	     regular_expr = regcomp("^");
< 	 } /* AM 940612: disabled: else */
< 	 do_auto_select(regular_expr, 2);
---
> 	 if (regular_expr == NULL)
> 	     msg("No previous expression");
> 	 else
> 	     do_auto_select(regular_expr, 2);


Alex
--
 ____    Alex Martelli, Bologna, Italia
 \SM/___ Not-a-Blake-quote-department: I apologize for delays in answering
  \/\bi/ email but I'm utterly swamped -- I always enjoy _reading_ mail but
     \/  please be patient if I take a long time answering yours!  Thanks.
Technical Details
Message-ID: <alex.782411639@cirfid.unibo.it>
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!bga.com!news.sprintlink.net!mhv.net!metro.atlanta.com!spcuna!solaris.cc.vt.edu!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!ghost.dsi.unimi.it!dm.unibo.it!alex
References: <jzeroCxM6DI.FDE@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <alex.782411639@cirfid.unibo.it>
Subject: Re: How do I select all articles in one fell swoop?
Date: Mon, 17 Oct 1994 16:33:59 GMT
From: alex@uqbar.cirfid.unibo.it (Alex Martelli)
References: <jzeroCxM6DI.FDE@netcom.com>
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!bga.com!news.sprintlink.net!mhv.net!metro.atlanta.com!spcuna!solaris.cc.vt.edu!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!ghost.dsi.unimi.it!dm.unibo.it!alex
Newsgroups: news.software.nn
Sender: news@dm.unibo.it
Organization: Wisdom & Folly, Inc.
X-Newsreader: NN version 6.5.0 #3
Lines: 34