From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13564 invoked from network); 15 Oct 2003 15:15:44 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Oct 2003 15:15:44 -0000 Received: (qmail 9301 invoked by alias); 15 Oct 2003 15:15:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6708 Received: (qmail 9272 invoked from network); 15 Oct 2003 15:15:23 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 15 Oct 2003 15:15:23 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.3.58.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 15 Oct 2003 15:15:23 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h9FFFLt23750 for zsh-users@sunsite.dk; Wed, 15 Oct 2003 08:15:21 -0700 From: Bart Schaefer Message-Id: <1031015151521.ZM23749@candle.brasslantern.com> Date: Wed, 15 Oct 2003 15:15:21 +0000 In-Reply-To: <20031015095427.GN867@DervishD> Comments: In reply to DervishD "Re: Is this an orthodox use of zstyle?" (Oct 15, 11:54am) References: <20031014160041.GA343@DervishD> <1031014164250.ZM22562@candle.brasslantern.com> <20031014171741.GG211@DervishD> <1031015062143.ZM23223@candle.brasslantern.com> <20031015095427.GN867@DervishD> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-users@sunsite.dk Subject: Re: Is this an orthodox use of zstyle? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 15, 11:54am, DervishD wrote: } } A last point: maybe I'm missing something, but I think that the } entire zstyle thing can be done with parameters (with exception of } the -e option, maybe). Yes, you could write "zstyle" as a shell function. There are a number of parts of the completion system that could be written as functions, but that were coded (or re-coded) in C for speed. I think the caching utility (_store_cache, etc.) would be the next candidate for that sort of conversion ... there's something else you could use to store state, by the way. Even slower than styles, but sharable across multiple shells.