From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10733 invoked from network); 15 Jul 2003 16:16:42 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Jul 2003 16:16:42 -0000 Received: (qmail 24939 invoked by alias); 15 Jul 2003 16:16:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18858 Received: (qmail 24930 invoked from network); 15 Jul 2003 16:16:35 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 15 Jul 2003 16:16:35 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [4.64.233.9] by sunsite.dk (MessageWall 1.0.8) with SMTP; 15 Jul 2003 16:16:34 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id h6FGGXi07796 for zsh-workers@sunsite.dk; Tue, 15 Jul 2003 09:16:33 -0700 From: Bart Schaefer Message-Id: <1030715161632.ZM7795@candle.brasslantern.com> Date: Tue, 15 Jul 2003 16:16:32 +0000 In-Reply-To: <25266.1058262125@csr.com> Comments: In reply to Peter Stephenson "Re: Preventing sorting in completers" (Jul 15, 10:42am) References: <25266.1058262125@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 15, 10:42am, Peter Stephenson wrote: } } It occurred to me we could test with the tag, then without, for } compatibility; something similar is done in other places, though } usually with some default tag. That'd be reasonable, though it still requires the special case for "menu" for _expand and therefore we can't remove code from _expand. We might be able to remove it from _history. } > OTOH, I wonder whether _description should NOT use the style when } > an explicit -J or -V argument has been passed? } } That's certainly arguable, but there's still something to be said } for giving people control anyway, in the same way you can override } the set of matched files. Slightly revised suggestion: Allow styles to override an explicit -J, but do not allow overriding an explicit -V. I did a quick grep, and there are very few cases where the -V option is passed; but in none of those would it be useful to apply a sort. } I think the question is: are people likely to use a general enough } context that it gives unexpected effects with sorting elsewhere? Considering that in nearly all cases the style would be used to turn sorting _off_ rather than _on_, that strikes me as unlikely. However, there are cases (e.g., _gdb) where nearly all contexts are sorted but one specific one (baud rate values) is unsorted, so if the style _is_ used to enable sorting, the possibility does exist.