zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: alter _all_matches example in docs
@ 2002-03-26 18:04 Oliver Kiddle
  0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2002-03-26 18:04 UTC (permalink / raw)
  To: zsh-workers

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-26 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-26 18:04 PATCH: alter _all_matches example in docs Oliver Kiddle

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).