Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Using _values with ->state transitions?



On May 8,  2:21pm, Sven Wischnowsky wrote:
} Subject: Re: Using _values with ->state transitions?
}
} Bart Schaefer wrote:
} 
} > function> _values -s ':' test 'a:arg:->foo' b c
[...]
} > schaefer[507] : a=<TAB>
} > schaefer[508] : a=foo 
} >                       ^cursor here -- why did that space get added?
} 
} Er, how should _values do that?  At the time the `foo' is added as a
} match _values isn't running anymore.

Er, um ... I was confusing the problem above with THIS problem:

} (But it was broken for the (...)-forms of actions, too.  Ahem.)

So I really wasn't thinking of the -> case at all, so ...

} We could make _values store the `-qS$sep' in some array that has to be
} declared by the calling function, but then that function has to use it
} and probably could equally well do it directly.

Right.

} Should we add that or just document what the function handling the
} `->state' would have to do?

Documenting what the ->state handler should do would be nice, yes.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author