zsh-workers
 help / color / mirror / code / Atom feed
* Some compctl stuff has become broken
@ 2008-03-01 18:59 Bart Schaefer
  2008-03-01 19:11 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 2008-03-01 18:59 UTC (permalink / raw)
  To: zsh-workers

Probably not high on anyone's list, but this:

compctl -D -f -x 's[:]' -U -K multicomp

(using the multicomp function from Functions/Compctl) used to work like so:

zsh-2.4% echo :/u/b<TAB>
zsh-2.4% echo /usr/bin 

Note that the leading colon got stripped.  This is an intentional trick to
invoke multicomp only if a "flag character" has been inserted at the front
of the completion, because otherwise multicomp could be slow/expensive to
invoke on every default file completion.

In 4.3.5-dev-0 (current CVS) it almost works, except it fails to remove the
leading colon:

schaefer[632] Src/zsh -f
torch% FPATH=../zsh-4.3/Functions/Compctl autoload +X multicomp
torch% compctl -D -f -x 's[:]' -U -K multicomp
torch% echo :/u/b<TAB>
torch% echo :/usr/bin 

Something has changed about the -U option and its handling of prefixes, I
guess ...?

-- 


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

* Re: Some compctl stuff has become broken
  2008-03-01 18:59 Some compctl stuff has become broken Bart Schaefer
@ 2008-03-01 19:11 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2008-03-01 19:11 UTC (permalink / raw)
  To: zsh-workers

On Mar 1, 10:59am, Bart Schaefer wrote:
} Subject: Some compctl stuff has become broken
}
} Probably not high on anyone's list, but this:
} 
} compctl -D -f -x 's[:]' -U -K multicomp
} 
} In 4.3.5-dev-0 (current CVS) it almost works, except it fails to remove the
} leading colon

Hm.  If I change that to S[:] instead, then it works.  So something
has changed, but maybe it was intentional.


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

end of thread, other threads:[~2008-03-01 19:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-01 18:59 Some compctl stuff has become broken Bart Schaefer
2008-03-01 19:11 ` Bart Schaefer

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