Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Forgetting about compinit with manual alteration of _comps
- X-seq: zsh-users 21265
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: Forgetting about compinit with manual alteration of _comps
- Date: Wed, 10 Feb 2016 11:28:10 +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=VVBUcWy9TUUTksENh0tG/PaazZbMsjpdIWdXhqoeQGw=; b=NhBWLEUpWIlE5SfnSa1SMvOmWbmAI3OTN/KCX5Je+ZSkAC299wPKfg2qQebx0/2Ux/ 3JRXijaY/BDXXyhYD+qShhIsfC8XPk8mVJ3uGxu5ke+F+ZiaPhL9mK9JthOhE4hCqQc9 8GVy2MrGzY3faZygyZWMDNQfnU8zRIh3RZ6Y82mX44S53n19ZBUMI5lpF+WeMT8T+mfP TS+I4jrVqF1gp81/ZkaMfBjyjavGp9H6UcbEE/VGljBpRatxRDMH0h7cRJ0UtJYZ4PLo IH83r87tc2Ai4THSL9q13PYICIVi0LnSGo70BVyLYM+ocHRHkwQlOPamHFa9k+o0mQRW CRag==
- In-reply-to: <20160210092322.GB6339@tarsus.local2>
- 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: <CAKc7PVBLufmR3wLZ8mVGpGq1o1DgB8ci3bH3X6cyzbMyEOoZZg__29303.1625486494$1455013779$gmane$org@mail.gmail.com> <20160210092322.GB6339@tarsus.local2>
On 10 February 2016 at 10:23, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> However, I'm not sure making a plugin loadable _either before or after_
> compinit is a good idea. It may be simpler for plugin authors to expect
> to be loaded in one circumstance (say, after compinit) and ensure they
> emit a clear error message in the other circumstance (say, before
> compinit), than to eternally support two codepaths.
All this is a frustration about "compinit does everything". If there
was "compinit" and "compinit_examine_fpath", it would be all much
simpler. User would init completion at beginning of .zshrc, which is a
natural location for "init" things, and then "compinit_examine_fpath"
at end, which is also natural. All this resolved by providing
compdef() stub gathering compdef calls and allowing to replay them
after compinit placed at bottom of .zshrc.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author