Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How completions work, do they require fpath?
- X-seq: zsh-users 21199
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: How completions work, do they require fpath?
- Date: Fri, 29 Jan 2016 09:02:05 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=wJyhlZW3HIOJbC3xHe+wW39c75vuXe26cSYFUUwedwU=; b=xlrYYL2OksKXfo8V8LmmkeB+CC+f+wIJMINNPSS5JmwjUdba9L9cklaOfQ94U0fBYR 8ua72E8ijHWkWBcMSXKGlqUfBGnXe/kL0XHDufwgeIw5uskhML7+icWFEExbOclZWxef dGaHB2CKh5RNwfNuzI3x29ioqEzUlZNzkqikGHYHJ/+9E5kKtiI+65AumK/Kh5i9EMQB C1Cu4KVShmHK+JySZBSTWaYgFZeClkBCvWqLO6oHEt+JiJHVeqplGY7bIHE+u9DrePYU E8EWAlreOAyxvdm+XCVZCg2rr/zzksFB2cHdylH+MusYheEv6/VkI/zGKgVhp229P9aM RQWw==
- In-reply-to: <160128152332.ZM20837@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCqw_Z+RnjzwEtoRVLSE1A9JSyVQYpg1E=6u5em5qDdkg@mail.gmail.com> <160126232017.ZM3789@torch.brasslantern.com> <CAKc7PVBcpYc4JjzWfuiqb=wjeQxtGF=vMDgxT7QTdLR2mPcJag@mail.gmail.com> <CAKc7PVCMPay34XS9up_CP-iZ79xPt2sZw35ngPBZZGN=_SRX_Q@mail.gmail.com> <160127231104.ZM17647@torch.brasslantern.com> <CAKc7PVCaf3qbwq_5RS-EwqHnhC+fSMPn+c4bJMuib9qYnyhcGA@mail.gmail.com> <CAKc7PVCpFn=MeAMZM02vrFZZpiFw=hAhVnKTDpDYMuN1Y87WtQ@mail.gmail.com> <160128152332.ZM20837@torch.brasslantern.com>
On 29 January 2016 at 00:23, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> The intention is that #1 is simple and can be rubber-stamped for every
> new completion function, but you always have #2 if #1 doesn't work for
> some reason. Either way "compinit" has to happen to set up the rest of
> compsys, so there's no point in defining "compdef" independently.
There is a plugin (voronkovich/get-jquery) that calls compdef. The
problem is that this requires compinit being run before loading
plugins. But after loading them, compinit is also to be run, to take
account of possible new completions added by the plugins. I guess I
will shadow compdef and load compinit, and warn user about that in
report, that he will have compinit run twice. Unless there is a way to
provide compdef without whole compinit?
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author