From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20126 invoked by alias); 31 Jan 2016 19:25:38 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21216 Received: (qmail 22087 invoked from network); 31 Jan 2016 19:25:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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=qogUWxT2dqXAV1+QMB7Ww6pgTt3NoSulOcOAu0NmFXI=; b=FUOBPb5MT9hObeYllWRV1LiOYI/2IXn/fN6SP+ngsyTASOQsIXgJSbNzo78z3E6NCD R6ZeiGoo17BO/BzEh01xjs5DsDKjqWiP2EHNicdW+MK4P27oBy2fkdfXJsfbDcWEXWF0 NAB2JiP+zNPAt3U/QdcIZJLP6YVxEpVAQhICbtFQjKL6IQ1p8VpPlZkD1FJ00aHtSS2G Izx3ybAmIBhOSmoFWIzsYF49x2byYY1L9NaTyHo+dG5AhqSWgi/WbaF9qD7QxMY8ysbK oLakuDwpiXglTIbd9elxqpwQH6oKWv+r1iXDLL+bjsHBcOfmiSEGmvlFfqxCoCMVbIbk ajdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=qogUWxT2dqXAV1+QMB7Ww6pgTt3NoSulOcOAu0NmFXI=; b=WOISe6dhzDybTWtPNrWAWppuK1vBo8RQPkNFAfMvm4yU0gY8HZNTJbUmT6h7l7H1Ly 4vK1jT8MiZqVQ8JGyNi6NEVtqwpxnTPPj6V+oCMc4SZnlG4rKQo9Tc4N/mAPTxQlQHnK nF6uq4VdMmIC3FnxYU2dIIDeJYmb9bFsBXQH9g8nSAvGcztRF2/BU7xO6SQR2Uk++6mB KIDxGvWkDfA0DA6Mj/OKhumFGuj8i12pcuT7Oz/IK7zY7jbLZEGx7kdW9ECB28d8xHCJ Nsls9Zpg7dQYuzvLAqGCkb/NwWaPbo2jBjru6/ZDWBKpWD3Fm9pptS6/KqdyCL8Al/55 nydA== X-Gm-Message-State: AG10YOSFOJYaRtjnsKRJHZJCKk7Idp/Y1qCnq9t+kyfCx6mRRs9cTqyPv0/stZdjeyePPQ== X-Received: by 10.98.70.92 with SMTP id t89mr24919235pfa.110.1454268335637; Sun, 31 Jan 2016 11:25:35 -0800 (PST) From: Bart Schaefer Message-Id: <160131112626.ZM11804@torch.brasslantern.com> Date: Sun, 31 Jan 2016 11:26:26 -0800 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: How completions work, do they require fpath?" (Jan 29, 9:02am) References: <160126232017.ZM3789@torch.brasslantern.com> <160127231104.ZM17647@torch.brasslantern.com> <160128152332.ZM20837@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: How completions work, do they require fpath? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jan 29, 9:02am, Sebastian Gniazdowski wrote: } } There is a plugin (voronkovich/get-jquery) that calls compdef. The } problem is that this requires compinit being run before loading } plugins. Well, either that or you have to divide the plugins into before/after compinit subsets, somehow. There's probably always going to be a way for an uncooperative author to muck up a plugin manager, just as you could write a C module that abuses the zmodload linkage conventions. } Unless there is a way to provide compdef without whole compinit? compdef is going to manipulate global variables used/needed by compinit and later by the rest of compsys. It's not really possible to run it standalone beforehand. You could try this: Define your own "compdef" whose only action is to cache its arguments somewhere. Load all the plugins, then after compinit is run, play back the cached compdef arguments with the real compdef.