From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13154 invoked from network); 14 Jul 2003 19:14:43 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Jul 2003 19:14:43 -0000 Received: (qmail 20753 invoked by alias); 14 Jul 2003 19:14:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18851 Received: (qmail 20740 invoked from network); 14 Jul 2003 19:14:37 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 14 Jul 2003 19:14:37 -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 19:14:37 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h6EJEZ406609 for zsh-workers@sunsite.dk; Mon, 14 Jul 2003 12:14:35 -0700 From: Bart Schaefer Message-Id: <1030714191435.ZM6608@candle.brasslantern.com> Date: Mon, 14 Jul 2003 19:14:35 +0000 In-Reply-To: <18991.1058203878@csr.com> Comments: In reply to Peter Stephenson "Re: Preventing sorting in completers" (Jul 14, 6:31pm) References: <18991.1058203878@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, 6:31pm, Peter Stephenson wrote: } Subject: Re: Preventing sorting in completers } } Bart Schaefer wrote: } > cases where the internal sort done by the completion system does not } > agree with the sort performed by ${(o)exp}. } } I assumed that (o) was equivalent to what the completion system did. It may very well be, and most likely is. } > _expand uses } > zstyle -s ":completion:${curcontext}:" sort sort } > whereas with the patch _description uses } > zstyle -s ":completion:${curcontext}:$1" sort sort } } Well, the only ways I can see of completely removing problems like this } are to pass down an additional argument into _description and _wanted to } stop it using the style, or use a different style. These aren't necessarily problems to be removed, just behaviors to be documented. There's no reason one can't have a style for sorting the results of _expand and another more specific style for sorting a tag context. OTOH, I wonder whether _description should NOT use the style when an explicit -J or -V argument has been passed? Most of the time there is no -J/-V argument at all to _description.