From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29042 invoked by alias); 20 Jun 2016 14:19:56 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38721 Received: (qmail 28245 invoked from network); 20 Jun 2016 14:19:54 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1466432008; bh=RodSTOhDZu2FVNqrjLqf+l1HqyfkI4vGwiLAMyx7L2Y=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=LNAxGqLShG5z+0Zzo7PYyTzmoSD8/1CAAR4YANxqR0Trm0KszKxBwlFUl8NIGR5foLCTjyX3wWN3ogST4nTtdl5G5zadt3ONVqR1KAJWghJv6SJc5M7db1tcnd36yRsHES5AhYXprgyKbqTHZmTkCv2nZrc7q1IrVkIHQpzmSEx+OVo5wEhKfNmXpJASqORB5ESKjWkC/esaMtozA3rOUA2iwIM1IjIvogAvjjx3MpB6IR9LNB1Dj4PMnOFKy6Qb6rnfhqJ7gYUeO6B2h3lsT35/fLIPWp/EPd2xSSZJzLFsj1KnmDmFASxDYVA6f2WOaby1DIpZk84d5OxOQ4t/tg== X-Yahoo-Newman-Id: 611588.51770.bm@smtp143.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: QiU0S1cVM1nWg62tdaP3jC72BDssAj5kRY7l31JEtyg0R2y zt0wRFsAAt9gXwyFLEun03DORvGnzZIhdVnVyMAu6Llz4MM.eOxGTXnuNaAT t37uVrwNRdG8Gcg6ayXvKGJPcKcoYY8qchv8bFVE2moKWPpUPSgP8nux2wH7 vpJn4RuMhmXkWt4IpxCYrTsk.4U0JmfivLT6cFBgzmbeXNemt3TYjCqqE4ss EmDE1Qb7gF0dtsQqbEHNSmn_gzOKXrAbk6u.kbG5l5DXwFr7E1t3jaNYkSPU MRGI5GOkZqv69qFtlM0bQmVt0eQ2NFBZS3QtcB2bfGZ0nnngC6AJ9QPpuwn7 XlL3dYwVFejwISPBvdIKYgXJrrnHGc0MbX3x4jkanhO6SDTPmSGpdNmojwca Br2QMEmdQ5J_ks49v2zV.Cw2byaQ3xCHi5.KHn6AzKyDqrhQCeaXIssQ8nFO .OxsA4nRNG0tQk.I7Es3aGHdqZK22O_Er4jK5QDNuAj8ON0cz5eCvAN0yJ58 2qf1FoOWY4tdmrW.N6ZRfjYgLPvNpoA-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- In-reply-to: <160619091803.ZM1176@torch.brasslantern.com> From: Oliver Kiddle References: <57504DEC.9000101@redhat.com> <2aa4c678-6d5e-0614-7aff-e374c3108ba3@gmx.com> <5312.1465896712@thecus.kiddle.eu> <23451.1466284625@thecus.kiddle.eu> <160619091803.ZM1176@torch.brasslantern.com> To: zsh-workers@zsh.org Subject: Re: PATCH: allow default match specs to be disabled (was Re: [PATCH v4] zsh localedef completion) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15695.1466432007.1@thecus.kiddle.eu> Date: Mon, 20 Jun 2016 16:13:27 +0200 Message-ID: <15696.1466432007@thecus.kiddle.eu> Bart wrote: > } This patch uses x: as the token. Any thoughts on that or alternative > } suggestions? > > My only other thought would be a single hyphen or a single exclamation > point, for similarity with the tag-order style, A single hyphen wouldn't be a good idea because _wanted and similar helpers look for a single hyphen to indicate where they should insert the explanation options. The way ! is used in tag-order is somewhat different. Do you have a preference for it as such? > * it matters that the global matcher is prepended to matcher-list > rather than appended By global matcher do you mean the "matcher" style; it is only global if specified with a very general context. What is your source for that statement? The only line of documentation I've found that implies that comes from a clarification patch in users/18550. It originally used the wording "added to". > What is it that leads you to think it's order-independent? Well the word "order" is absent from the "Completion Matching Control" section of the manual. And I can't think of a way for one matching spec to affect another. > I have this comment in my .zshrc: > > zstyle ':completion:*' matcher-list '' 'r:|[-._,]=** r:|=**' \ > 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[-._,]=** r:|=**' \ > 'r:|[-._,]=** r:|=** l:|=*' > Maybe I'm misunderstanding your question. Yes, my question concerned only the order of match specifications as they are passed to compadd -M within a single string. So is there, for example, any difference between -M 'r:|[-._,]=** r:|=**' and -M 'r:|=** r:|[-._,]=**' The order of matcher-list arguments clearly does matter - _main_complete (or _prefix) looks them up and tries them one after the other in order. But within an argument, can the order of the various r: and m: specs matter? I'm fairly sure the answer is no. Oliver