From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9994 invoked by alias); 30 Mar 2012 19:41:31 -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: 16938 Received: (qmail 29883 invoked from network); 30 Mar 2012 19:41:29 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.171 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:x-gm-message-state:content-type :content-transfer-encoding; bh=HktmPKIqfUQgFNX9H4SfvPcDm5hSzTjCzzbOfpSFeJI=; b=Bl6RYoGzF+cO6SpWwZMxS9hAo8XrsQrKqH1Hk5Bvv7HS1XN6V0UmGFaOe2nRcWl8N7 bLcoXu/s01Jj7SbxJReGkcgd0c5G6YBDxW+N24ACbf3ZtdGkpfsmr/k/JqdQyKOZVK/k bsCBNzPilrHp7LiZ6gDCyMI75QVaK77vemMP6YDFsQPlVVw0UI5lWoAU7mMiqmBDpCwT 9nxP5qsOi54mSBNGz7Z1RGkkImlUOLrTLUSwWAqZs+CvhveZT0XgDbnY5iKF5Ryoqbrx B485RN9OZ6Z+58F1U6MoRh+TgpoPRCJdG4qjFZiX3MDBFvvRKDjQdzbCdVuseJRBcIhv sG9A== X-ProxyUser-IP: 86.6.29.42 Date: Fri, 30 Mar 2012 20:41:12 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: Explicit colons in zstyle Message-ID: <20120330204112.00f969a9@pws-pc.ntlworld.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 X-Gm-Message-State: ALoCoQk3+TkNGDe18qHKo+lm5nPQbdoqHoGWY7hfnTNPxIuNOWgxy906kCh/Ys9W6DfM8UijU7o8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 29 Mar 2012 20:59:25 +0200 Jesper Nyg=C3=A5rds wrote: > Is there something special about how a style should be expressed when > it relates to "completer"?. I started noticing in some examples from > The Book, that completer is not treated exactly the same as other > styles. >=20 > Here's the well know most-recent-file example: >=20 > zstyle ':completion:most-recent-file::::' completer _menu _files _match > zstyle ':completion:most-recent-file:*' file-sort modification > zstyle ':completion:most-recent-file:*' hidden all > zstyle ':completion:most-recent-file:*' file-patterns '*(.):normal\ files' >=20 > Is there a reason why the first line contains so many colons? To me it > looks like it would be equivalent to the other lines, containing an > asterisk. I think the book (Oliver wrote that bit) is just making the point that the completer style is always looked up with most of the fields empty. By recognising the fact you can make it match many of the fields exactly. The only difference with replace the :::: with :* is that it becomes according to the rules a less exact match, so that if you happened to have both definitions the former would take precedence. That's not something you typically need to worry about. --=20 Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/