zsh-users
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: How completions work, do they require fpath?
Date: Fri, 29 Jan 2016 09:02:05 +0100	[thread overview]
Message-ID: <CAKc7PVABRdAONv34C4yxCPbHJWL8EvaRE8ffz-DM1UiQSO1J6w@mail.gmail.com> (raw)
In-Reply-To: <160128152332.ZM20837@torch.brasslantern.com>

On 29 January 2016 at 00:23, Bart Schaefer <schaefer@brasslantern.com> 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


  reply	other threads:[~2016-01-29  8:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-26 17:18 Sebastian Gniazdowski
2016-01-26 19:51 ` Sebastian Gniazdowski
2016-01-27  7:20   ` Bart Schaefer
2016-01-27  7:59     ` Sebastian Gniazdowski
2016-01-28  7:11       ` Bart Schaefer
2016-01-28  7:37         ` Sebastian Gniazdowski
2016-01-28  7:39           ` Sebastian Gniazdowski
2016-01-28 23:23             ` Bart Schaefer
2016-01-29  8:02               ` Sebastian Gniazdowski [this message]
2016-01-31 19:26                 ` Bart Schaefer
2016-01-28 19:29           ` 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=CAKc7PVABRdAONv34C4yxCPbHJWL8EvaRE8ffz-DM1UiQSO1J6w@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /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).