Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: alter _all_matches example in docs
- X-seq: zsh-workers 16908
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: alter _all_matches example in docs
- Date: Tue, 26 Mar 2002 18:04:36 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: Oliver Kiddle <kiddleo@xxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author