From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8247 invoked by alias); 8 Jan 2015 00:50:08 -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: 19707 Received: (qmail 21035 invoked from network); 8 Jan 2015 00:50:05 -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 01:43:23 +0100 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: completion Message-ID: <20150108004323.GA7954@xvii.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <5488D414.6010300@eastlink.ca> <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> 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 10:48:39 -0800, Bart Schaefer wrote: > On Jan 7, 2015 7:15 AM, "Vincent Lefevre" wrote: > > If an asterisk can match anything, there may be an ambiguity on > > which field some given word will match. > > This is actually intentional, so that a single style can be applied to > multiple contexts. The expected use is that the wildcard will usually be > at the tail of the context string, so it's a shorthand to avoid having to > write out all the trailng colons. But the ambiguity shouldn't be intentional. The syntax is: :completion:FUNCTION:COMPLETER:COMMAND:ARGUMENT:tag. ___________1________2_________3_______4________5 Now consider one of the examples: zstyle ':completion:*:complete:*' matcher-list [...] If * matches everything, then this could mean either :completion:[any function]:complete:[any cmd]:[any arg]:[any tag] or :completion:[any function]:[any completer]:complete:[any arg]:[any tag] or :completion:[any function]:[any completer]:[any cmd]:complete:[any tag] -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)