From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17200 invoked from network); 7 Jul 2001 23:31:23 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Jul 2001 23:31:23 -0000 Received: (qmail 11455 invoked by alias); 7 Jul 2001 23:30:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15307 Received: (qmail 11444 invoked from network); 7 Jul 2001 23:30:18 -0000 From: "Bart Schaefer" Message-Id: <1010707233010.ZM16910@candle.brasslantern.com> Date: Sat, 7 Jul 2001 23:30:10 +0000 In-Reply-To: <000001c10514$04fa4580$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "Debugging of dynamocally defined functions" (Jul 5, 9:33am) References: <000001c10514$04fa4580$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "ZSH Workers Mailing List" Subject: Re: Debugging of dynamocally defined functions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 5, 9:33am, Andrej Borsenkow wrote: } Subject: Debugging of dynamocally defined functions } } Honestly speaking, I never liked it (function defining other functions that } is); why not simply have them autoloaded is beyond me. In the case of compdef I agree with you -- it's complicated enough that it should have an entry in the documentation (separate from the `#comdpef' entries, which are deceptively similar but use slightly different syntax). In other cases functions defining functions is quite appropriate; consider the `compadd' front-end that's defined in _approximate or _complete_help. Not only would it be a waste to put it in a separate file, it would cause errors to locate that file anywhere in the fpath! In another message, PWS said: > > By the way, you can use the trick of > > eval "$(which compdef)" > > to sync the line numbers with the which output. At least I hope so --- > if this goes screwy there's a bug in text.c. No, you can't. This causes all the lines to be numbered zero. `zed -f' has the same problem; drives me nuts. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net