From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11742 invoked from network); 14 Jul 2003 17:11:50 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Jul 2003 17:11:50 -0000 Received: (qmail 24245 invoked by alias); 14 Jul 2003 17:11:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18849 Received: (qmail 24236 invoked from network); 14 Jul 2003 17:11:42 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 14 Jul 2003 17:11:42 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.233.9] by sunsite.dk (MessageWall 1.0.8) with SMTP; 14 Jul 2003 17:11:40 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h6EHBd606397 for zsh-workers@sunsite.dk; Mon, 14 Jul 2003 10:11:39 -0700 From: Bart Schaefer Message-Id: <1030714171139.ZM6396@candle.brasslantern.com> Date: Mon, 14 Jul 2003 17:11:39 +0000 In-Reply-To: <15028.1058200902@csr.com> Comments: In reply to Peter Stephenson "Re: Preventing sorting in completers" (Jul 14, 5:41pm) References: <15028.1058200902@csr.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: Preventing sorting in completers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 14, 5:41pm, Peter Stephenson wrote: } Subject: Re: Preventing sorting in completers } } For example, the following very lightly tested function where I've tried } not to screw up _expand but fell into apathy at the thought of actually } testing whether I had. I think what you've done will change the behavior of _expand in those cases where the internal sort done by the completion system does not agree with the sort performed by ${(o)exp}. Depending on the context used to set the style, of course. I'm not sure what the other ramifications of the zstyle context may be; _expand uses zstyle -s ":completion:${curcontext}:" sort sort whereas with the patch _description uses zstyle -s ":completion:${curcontext}:$1" sort sort } I think this makes the direct use in _history redundant. Not quite, because _history also uses the shorter context name: if zstyle -t ":completion:${curcontext}:" sort; then Is there an obvious way to resolve that, without breaking working styles?