From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29271 invoked from network); 27 Oct 1999 21:02:55 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Oct 1999 21:02:55 -0000 Received: (qmail 23426 invoked by alias); 27 Oct 1999 21:02:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8460 Received: (qmail 23418 invoked from network); 27 Oct 1999 21:02:40 -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> 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 06:02:37 +0900 In-Reply-To: Clint Adams's message of "Wed, 27 Oct 1999 15:53:53 -0400" 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 <19991027155353.A2441@dman.com>, Clint Adams writes: > Damn. Configure-time check of yodl version and then > run sed on FAQ.yo? Seems silly. I removed XXenumcounter from FAQ.yo. This seems to work with Yodl 1.22 and 1.31.16. Index: Etc/FAQ.yo =================================================================== RCS file: /projects/zsh/zsh/Etc/FAQ.yo,v retrieving revision 1.1.1.12 diff -u -F^( -r1.1.1.12 FAQ.yo --- Etc/FAQ.yo 1999/10/27 19:36:49 1.1.1.12 +++ Etc/FAQ.yo 1999/10/27 20:56:58 @@ -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()()())\ @@ -500,7 +500,6 @@ (http://sunsite.auc.dk/zsh/Patches/) substantial. As a summary of the status: - NEWCOUNTER(XXenumcounter) enumerate( myeit() because of all the options it is not safe to assume a general zsh run by a user will behave as if sh or ksh compatible; @@ -748,7 +747,6 @@ (http://sunsite.auc.dk/zsh/Patches/) 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.). @@ -1054,7 +1052,6 @@ (http://www.cis.ohio-state.edu/hypertext 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. @@ -1265,7 +1262,6 @@ (http://www.cis.ohio-state.edu/hypertext 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 {) @@ -1865,7 +1861,6 @@ (for example, there is a function called 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 -- Tanaka Akira