zsh-workers
 help / color / mirror / code / Atom feed
* Difficulties with _oldlist
@ 2004-08-23 15:51 Bart Schaefer
  2004-09-08 16:56 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Bart Schaefer @ 2004-08-23 15:51 UTC (permalink / raw)
  To: zsh-workers

In _oldlist is this test:

elif [[ $WIDGET = *complete(|-prefix|-word) ]] &&
     zstyle -T ":completion:${curcontext}:" old-menu; then

This effectively means that, in order to use _oldlist, user-defined 
completion widgets must have names ending in "complete".

This should at the very least be documented.  A better solution would be 
if $WIDGET could be replaced by a different variable, say $WIDGETSTYLE for 
example, which is set corresponding to the second argument of "zle -C".
I.e. if the widget were defined with

	zle -C blather list-choices blather

then at time of call $WIDGETSTYLE would be "list-choices", and _oldlist
could examine that instead of $WIDGET.

This would also solve a longstanding problem with _complete_debug (which
could be tweaked by renaming it to _debug_complete in the meantime).


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

end of thread, other threads:[~2004-09-13 13:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-23 15:51 Difficulties with _oldlist Bart Schaefer
2004-09-08 16:56 ` Peter Stephenson
2004-09-10  8:04   ` Bart Schaefer
2004-09-10 10:59     ` Peter Stephenson
2004-09-13 13:21       ` Peter Stephenson

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