zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Some compctl stuff has become broken
Date: Sat, 01 Mar 2008 10:59:31 -0800	[thread overview]
Message-ID: <080301105933.ZM19727@torch.brasslantern.com> (raw)

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

-- 


             reply	other threads:[~2008-03-01 19:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-01 18:59 Bart Schaefer [this message]
2008-03-01 19:11 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=080301105933.ZM19727@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).