Zsh Mailing List Archive
Messages sorted by:
Re: How completions work, do they require fpath?
- X-seq: zsh-users 21197
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: How completions work, do they require fpath?
- Date: Thu, 28 Jan 2016 11:29:41 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=nh8QdVN16qzEvW08YSZS8+3dmL/7tD9xySWcjnlbWto=; b=0eel6QVyvq0Z6BUOT1aJnBPdsqsvqL44TGaxv5GKSvjnK4gD9BeMUAlK2EX2dAomJl sfiTk0YgGEszlPYVyL1v45vND1G0BIy+UdAAU9G8cVoWEf7LRXBLRMZffveQQGpyN0JX ldidECxCM9MPFEApC/hxxiJIETOnIWbUnVeNNnVdwrxWOxH8I3ajCIJvpjc9m89TA0Ev Y+dpzPjIGGimYUJyehJcX54n3c3Le65M26xfoJSnG7IUHg5LTK3Tz93pq2zbgfo532lY PkoCgp0ZX78yKYpP4mb6Bhp0oz86YtgeY1H1e6f2XbdDCZsBE3zUK0VuA1YxN4h8MTH4 aL8w==
- In-reply-to: <CAKc7PVCaf3qbwq_5RS-EwqHnhC+fSMPn+c4bJMuib9qYnyhcGA@mail.gmail.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- 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>
On Jan 28, 8:37am, Sebastian Gniazdowski wrote:
} One thing emerged - I was expecting that empty say "_cp" will just be
} ignored, because of lack of #compdef, however it isn't - it blocks
} other "_cp" files from loading.
That doesn't have anything to do with compinit, that's just the way
autoloading always works. Compinit marks the names to be autoloaded,
but it doesn't control where they come from when autoloading finally
happens. This was bashed out in agonizing detail with Ray Andrews
back in September.
The reload-and-run trick could circumvent this, that is, if your
autoload shadow were defined before compinit runs, then all of the
functions it touches would load from the place they were found at
compinit time rather than at execution time.
But it would make compinit a bit slower and use a bit more memory.
Messages sorted by: