zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk
Subject: PATCH: alter _all_matches example in docs
Date: Tue, 26 Mar 2002 18:04:36 +0000	[thread overview]
Message-ID: <20020326180436.GA24365@logica.com> (raw)

This is a very small change to an example usage of _generic in the
documentation. It makes the context for setting the completer more
specific. The trouble was that I used ':completion:*::::' for my main
completer style's context so it took precedence and it all didn't
work. This just makes it less likely that someone else makes the same
mistake.

I also just finally worked out that using * for the second (function)
part of the context for my ignored-patterns and ignore-line styles was
the cause of my _match based widget not working half the time.

Oliver

Index: Doc/Zsh/compsys.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/compsys.yo,v
retrieving revision 1.150
diff -u -r1.150 compsys.yo
--- Doc/Zsh/compsys.yo	17 Mar 2002 17:14:09 -0000	1.150
+++ Doc/Zsh/compsys.yo	26 Mar 2002 17:33:23 -0000
@@ -2398,7 +2398,7 @@
 example(zle -C all-matches complete-word _generic
 bindkey '^Xa' all-matches
 zstyle ':completion:all-matches:*' old-matches only
-zstyle ':completion:all-matches:*' completer _all_matches)
+zstyle ':completion:all-matches::::' completer _all_matches)
 )
 findex(_approximate)
 item(tt(_approximate))(
-- 

This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.


                 reply	other threads:[~2002-03-26 18:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020326180436.GA24365@logica.com \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).