From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3933 invoked from network); 28 Oct 1999 04:38:20 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Oct 1999 04:38:20 -0000 Received: (qmail 15739 invoked by alias); 28 Oct 1999 04:38:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8467 Received: (qmail 15732 invoked from network); 28 Oct 1999 04:38:13 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: FAQ acceptable to yodl 1.31 References: <19991027144015.A317@dman.com> <991027191213.ZM3829@candle.brasslantern.com> <19991027153308.A2034@dman.com> <991027194003.ZM3872@candle.brasslantern.com> <19991027155353.A2441@dman.com> <991028041346.ZM4196@candle.brasslantern.com> MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 28 Oct 1999 13:38:12 +0900 In-Reply-To: "Bart Schaefer"'s message of "Thu, 28 Oct 1999 04:13:46 +0000" Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) In article <991028041346.ZM4196@candle.brasslantern.com>, "Bart Schaefer" writes: > I just applied this patch by hand, and no, it doesn't work; the numbers > on the paragraphs are missing: The patch works for me with yodl-1.22 as: | Z(2):akr@is27e1u11% rm FAQ | Z(2):akr@is27e1u11% diff -u ../../zsh-3.1.6-bart-7/Etc/FAQ.yo FAQ.yo | --- ../../zsh-3.1.6-bart-7/Etc/FAQ.yo Sun Oct 3 14:11:16 1999 | +++ FAQ.yo Thu Oct 28 05:46:15 1999 | @@ -31,10 +31,10 @@ | COMMENT(-- myeit is like eit but fancier text formatting --)\ | def(myeit)(0)(\ | whenlatex(eit())whenhtml(eit())whenman(eit())whenms(eit())whensgml(eit())\ | - whentxt(USECOUNTER(XXenumcounter)CHAR(41)))\ | + whentxt(eit()CHAR(41)))\ | def(myeitd)(0)(\ | whenlatex(eit())whenhtml(eit())whenman(eit())whenms(eit())whensgml(eit())\ | - whentxt(USECOUNTER(XXenumcounter).))\ | + whentxt(eit().))\ | COMMENT(-- don't want headers for text, USENET headers must come first --)\ | def(myreport)(3)(\ | whentxt(report()()())\ | @@ -49,7 +49,7 @@ | mydit(Archive-Name:) unix-faq/shell/zsh | mydit(Last-Modified:) 1999/07/30 | mydit(Submitted-By:) email(pws@ibmth.df.unipi.it (Peter Stephenson)) | -mydit(Version:) $Id: FAQ.yo,v 1.6 1999/10/03 05:11:16 schaefer Exp $ | +mydit(Version:) $Id: FAQ.yo,v 1.1.1.12 1999/10/27 19:36:49 akr Exp $ | mydit(Posting-Frequency:) Monthly | mydit(Copyright:) (C) P.W. Stephenson, 1995--1999 (see end of document) | ) | @@ -747,7 +747,6 @@ | | Here is Bart Schaefer's guide to converting csh aliases for zsh. | | - SETCOUNTER(XXenumcounter)(0) | enumerate( | myeit() If the csh alias references "parameters" (tt(\!:1), tt(\!*) etc.), | then in zsh you need a function (referencing tt($1), tt($*) etc.). | @@ -1053,7 +1052,6 @@ | | This may seem a useful shorthand, but in practice it can have | unhelpful side effects: | - SETCOUNTER(XXenumcounter)(0) | enumerate( | myeit() Since every variable is in the environment as well as remembered | by the shell, the memory for it needs to be allocated twice. | @@ -1264,7 +1262,6 @@ | The problem is that there are two possible ways of autoloading a | function (see the AUTOLOADING FUNCTIONS section of the zsh manual | page zshmisc for more detailed information): | - SETCOUNTER(XXenumcounter)(0) | enumerate( | myeit() The file contains just the body of the function, i.e. | there should be no line at the beginning saying mytt(function foo {) | @@ -1864,7 +1861,6 @@ | | Different conditions can also be combined. There are three levels | of this (in decreasing order of precedence): | - SETCOUNTER(XXenumcounter)(0) | enumerate( | myeit() multiple square brackets after a single condition give | alternatives: for example, mytt(s[foo][bar]) says apply the | zsh: exit 1 diff -u ../../zsh-3.1.6-bart-7/Etc/FAQ.yo FAQ.yo | Z(2):akr@is27e1u11% cd Etc | Z(2):akr@is27e1u11% make | cd . && yodl2txt FAQ.yo && mv -f FAQ.txt FAQ | YODL to plain ASCII Converter V1.22 (1996-1997) | | Yodl is processing a(n) report | Running post-processor /app/yodl-1.22/lib/yodl/yodl2txt-post.. | Z(2):akr@is27e1u11% diff -u ../../zsh-3.1.6-bart-7/Etc/FAQ FAQ | --- ../../zsh-3.1.6-bart-7/Etc/FAQ Mon Oct 18 01:27:07 1999 | +++ FAQ Thu Oct 28 13:33:55 1999 | @@ -2,7 +2,7 @@ | Archive-Name: unix-faq/shell/zsh | Last-Modified: 1999/07/30 | Submitted-By: pws@ibmth.df.unipi.it (Peter Stephenson) | -Version: $Id: FAQ.yo,v 1.6 1999/10/03 05:11:16 schaefer Exp $ | +Version: $Id: FAQ.yo,v 1.1.1.12 1999/10/27 19:36:49 akr Exp $ | Posting-Frequency: Monthly | Copyright: (C) P.W. Stephenson, 1995--1999 (see end of document) | | zsh: exit 1 diff -u ../../zsh-3.1.6-bart-7/Etc/FAQ FAQ Hm. Anyone reproduce the problem? -- Tanaka Akira