From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11078 invoked by alias); 8 Jan 2015 12:36:25 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19715 Received: (qmail 23637 invoked from network); 8 Jan 2015 12:36:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Thu, 8 Jan 2015 13:36:06 +0100 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: completion Message-ID: <20150108123606.GA9609@ypig.lip.ens-lyon.fr> Mail-Followup-To: zsh-users@zsh.org References: <30453.1418258082@thecus.kiddle.eu> <5488F0AC.2040901@eastlink.ca> <141210214454.ZM12261@torch.brasslantern.com> <5489C8F4.8030703@eastlink.ca> <141211092824.ZM13349@torch.brasslantern.com> <5489F1BC.5000900@eastlink.ca> <20150107150109.GA14088@ypig.lip.ens-lyon.fr> <20150108004323.GA7954@xvii.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6391-vl-r75100 (2015-01-06) On 2015-01-07 21:26:44 -0800, Bart Schaefer wrote: > On Wed, Jan 7, 2015 at 4:43 PM, Vincent Lefevre wrote: > > zstyle ':completion:*:complete:*' matcher-list [...] > > > > If * matches everything, then this could mean [any of] > > > > :completion:[any function]:complete:[any cmd]:[any arg]:[any tag] > > :completion:[any function]:[any completer]:complete:[any arg]:[any tag] > > :completion:[any function]:[any completer]:[any cmd]:complete:[any tag] > > You're correct, it could. But "matcher-list" also has to match, and > THAT only happens in one of those three cases, so there's no need to > constrain the pattern any further (unless you WANT to; refer to my > car-cover analogy). I don't understand. I suppose that the real intent of zstyle ':completion:*:complete:*' matcher-list [...] was to match the completer "complete", i.e. like zstyle ':completion:*:complete:*:*:*' matcher-list [...] But what if the context is ":completion::foo:complete::" in some completion, i.e. with the completer "foo" and the command "complete"? It would match, wouldn't it? But the intent was to match only the completer "complete", not "foo"! -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)