zsh-workers
 help / color / mirror / code / Atom feed
* :*pattern::message:action
@ 2000-07-16  9:40 Tanaka Akira
  0 siblings, 0 replies; 3+ messages in thread
From: Tanaka Akira @ 2000-07-16  9:40 UTC (permalink / raw)
  To: zsh-workers

Z(2):akr@flux% Src/zsh -f
flux% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
flux% _tst () { _arguments '-e::*last:b:' }                          
flux% tst -e <TAB>
_arguments:294: command not found: b

Hm.
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: :*pattern:message:action
@ 2000-02-02  9:28 Sven Wischnowsky
  0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2000-02-02  9:28 UTC (permalink / raw)
  To: zsh-workers


Tanaka Akira wrote:

> I found that _arguments description `:*pattern:message:action' has a problem.
> 
> Z(2):akr@is27e1u11% Src/zsh -f
> is27e1u11% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
> is27e1u11% _tst () { _arguments '-x:*-?*:arguments for -x:' '-y' '-z' }
> is27e1u11% zstyle ':completion*:messages' format '%d'
> is27e1u11% tst -x a b c -y <TAB>
> arguments for -x
> 
> This doesn't complete `-y' and `-z'.  However they are completed by
> following command line, it is not intentional, I think.
> 
> is27e1u11% tst -x ab c -?* <TAB>

Indeed, missing tokenization.

Bye
 Sven

diff -ru ../z.old/Src/Zle/computil.c Src/Zle/computil.c
--- ../z.old/Src/Zle/computil.c	Wed Feb  2 09:34:50 2000
+++ Src/Zle/computil.c	Wed Feb  2 10:25:20 2000
@@ -717,6 +717,7 @@
 			    sav = *p;
 			    *p = '\0';
 			    end = dupstring(end);
+			    tokenize(end);
 			    *p = sav;
 			}
 			if (*p != ':') {

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 3+ messages in thread

* :*pattern:message:action
@ 2000-02-01 18:55 Tanaka Akira
  0 siblings, 0 replies; 3+ messages in thread
From: Tanaka Akira @ 2000-02-01 18:55 UTC (permalink / raw)
  To: zsh-workers

I found that _arguments description `:*pattern:message:action' has a problem.

Z(2):akr@is27e1u11% Src/zsh -f
is27e1u11% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% _tst () { _arguments '-x:*-?*:arguments for -x:' '-y' '-z' }
is27e1u11% zstyle ':completion*:messages' format '%d'
is27e1u11% tst -x a b c -y <TAB>
arguments for -x

This doesn't complete `-y' and `-z'.  However they are completed by
following command line, it is not intentional, I think.

is27e1u11% tst -x ab c -?* <TAB>
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-16  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-16  9:40 :*pattern::message:action Tanaka Akira
  -- strict thread matches above, loose matches on Subject: below --
2000-02-02  9:28 :*pattern:message:action Sven Wischnowsky
2000-02-01 18:55 :*pattern:message:action Tanaka Akira

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