From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10151 invoked from network); 7 Sep 1999 09:19:08 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Sep 1999 09:19:08 -0000 Received: (qmail 28333 invoked by alias); 7 Sep 1999 09:19:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7684 Received: (qmail 28326 invoked from network); 7 Sep 1999 09:18:59 -0000 Date: Tue, 7 Sep 1999 10:18:58 +0100 From: Adam Spiers To: Zsh hackers list Subject: Re: PATCH: completion for perldoc Message-ID: <19990907101858.B7292@thelonious.new.ox.ac.uk> Reply-To: Adam Spiers Mail-Followup-To: Zsh hackers list References: <19990906192131.C1322@thelonious.new.ox.ac.uk> <199909070857.KAA407243@hydra.ifh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199909070857.KAA407243@hydra.ifh.de>; from Peter Stephenson on Tue, Sep 07, 1999 at 10:57:22AM +0200 X-URL: http://www.new.ox.ac.uk/~adam/ X-OS: Linux 2.2.9 i686 Peter Stephenson (pws@ifh.de) wrote: > Adam Spiers wrote: > > > _perldoc { > > > ... > > > > I forgot to say: this kills zsh :-( > > There's no () after _perldoc, so it thinks it's a function call, not a > definition. You just generate hundreds of recursive calls to _perldoc > until the machine gets board of having enough space on the stack, or > something. Yes, I'm ashamed to say this was indeed the problem, and as usually happens, I only realised it after I'd posted. > Also, since it's assumed in the completion functions that KSH_AUTOLOAD > isn't set, you need to have as the last line `_perldoc "$@"' to call > the function you've just defined. Ah! So /that's/ why I was having to press TAB twice. Thanks. > The may be a bug here. Has anyone the slightest idea why `_perldoc {' > is accepted as a complete command line with the argument "{"? Nope. I've been bitten by that more than just this once though; I always forget the () ...