Article View: news.software.nn
Article #4477Re: make save overwrite vs. append?
From: Nancy McGough
Date: Sun, 11 Jul 1993 21:41
Date: Sun, 11 Jul 1993 21:41
53 lines
2492 bytes
2492 bytes
Here's a revised version of my ;F macro that asks whether you want to overwrite or append your *.FAQ folder. The append option is useful when the FAQ comes via a number of articles. I've unset embedded-header-escape so that the FAQ will be presented as a split digest when you read the folder. I don't think that you can use "G %" to split/unsplit digests in a folder -- when I try I get the message "Cannot split articles inside a folder" -- does anyone know? If you want to play around with this, a good FAQ to try it on is the one in comp.unix.questions -- it comes in 7 parts and is in digest form (i.e., contains lines that start with "Subject: " -- is that the definition of a digest?). Enjoy, Suggestions welcome, Nancy (in the midst of a macro mania!) # Next 2 lines establish semicolon (;) as macro prefix key (aliased to mac). make map mac map both ; prefix mac define 0 echo "Not available in this mode" break end # Use at end of macros that temporarily change variables. define 100 :load 2>/dev/null #Reestablish settings; don't show errors end # Overwrite and save FAQ map mac F ( ?menu macro 0 :unset embedded-header-escape macro 70 :set embedded-header-escape ~ #Restore default macro 100 #Restore non-default settings ) # 70 is ascii F (for FAQ) define 70 prompt "Do you want to overwrite +FAQs/$G.FAQ?" ?yes save-full "|cat> +FAQs/$G.FAQ" return prompt "Do you want to append +FAQs/$G.FAQ?" ?no return save-full "|cat>> +FAQs/$G.FAQ" return end
Technical Details
Message-ID:
<21q1dh$687@news.u.washington.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!gmd.de!Germany.EU.net!news.dfn.de!darwin.sura.net!howland.reston.ans.net!agate!library.ucla.edu!news.mic.ucla.edu!unixg.ubc.ca!cs.ubc.ca!uw-beaver!netnews.nwnet.net!news.u.washington.edu!stein2.u.washington.edu!nancymReferences:
<dennis.741540209@woodstock> <21ib5n$lir@news.u.washington.edu>Show Full Headers
Complete Article Headers
Message-ID: <21q1dh$687@news.u.washington.edu> Subject: Re: make save overwrite vs. append? Date: Sun, 11 Jul 1993 21:41:05 +0000 From: nancym@stein2.u.washington.edu (Nancy McGough) References: <dennis.741540209@woodstock> <21ib5n$lir@news.u.washington.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!gmd.de!Germany.EU.net!news.dfn.de!darwin.sura.net!howland.reston.ans.net!agate!library.ucla.edu!news.mic.ucla.edu!unixg.ubc.ca!cs.ubc.ca!uw-beaver!netnews.nwnet.net!news.u.washington.edu!stein2.u.washington.edu!nancym Newsgroups: news.software.nn Organization: University of Washington Lines: 55 Reply-To: nancym@u.washington.edu (Nancy McGough) NNTP-Posting-Host: stein2.u.washington.edu X-Newsreader: NN [version 6.4.16]